From: DoHyun Pyun Date: Mon, 22 Apr 2013 04:52:47 +0000 (+0900) Subject: Fix the memory leak X-Git-Tag: 2.1b_release^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5aa4cd58f77be4ea8e939831916b490663746671;p=platform%2Fcore%2Fconnectivity%2Fbluetooth-agent.git Fix the memory leak We should destroy the query Change-Id: I0d3bcad2bbb3b11d2e1926d878fe3a2ebf9783ac --- 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; }