From 5aa4cd58f77be4ea8e939831916b490663746671 Mon Sep 17 00:00:00 2001 From: DoHyun Pyun Date: Mon, 22 Apr 2013 13:52:47 +0900 Subject: [PATCH] Fix the memory leak We should destroy the query Change-Id: I0d3bcad2bbb3b11d2e1926d878fe3a2ebf9783ac --- pb-agent/bluetooth_pb_agent.c | 1 + 1 file changed, 1 insertion(+) diff --git a/pb-agent/bluetooth_pb_agent.c b/pb-agent/bluetooth_pb_agent.c index d86ae74..c3df5da 100644 --- a/pb-agent/bluetooth_pb_agent.c +++ b/pb-agent/bluetooth_pb_agent.c @@ -1278,6 +1278,7 @@ static void __bluetooth_pb_get_vcards(BluetoothPbAgent *agent, if (status != CONTACTS_ERROR_NONE) { contacts_list_destroy(record_list, TRUE); + contacts_query_destroy(query); return; } -- 2.7.4