summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2012-10-26 10:56:56 +0300
committerJohan Hedberg <johan.hedberg@intel.com>2012-10-26 11:01:05 +0300
commit1d18443e6b5432a493ea300da978f4385802cfe7 (patch)
tree50f74c8361104e66a59dde98ddfde4ab02964a6f /src
parentf24c3882721400d916ff81d7c526a12ccad4175a (diff)
core: Fix memory leak
1,262 (64 direct, 1,198 indirect) bytes in 1 blocks are definitely lost in loss record 280 of 290 at 0x4A0881C: malloc (vg_replace_malloc.c:270) by 0x4C813FE: g_malloc (in /usr/lib64/libglib-2.0.so.0.3200.4) by 0x4C95801: g_slice_alloc (in /usr/lib64/libglib-2.0.so.0.3200.4) by 0x4C95D55: g_slice_alloc0 (in /usr/lib64/libglib-2.0.so.0.3200.4) by 0x4C746AA: g_key_file_new (in /usr/lib64/libglib-2.0.so.0.3200.4) by 0x18136C: load_config (adapter.c:2620) by 0x18353B: adapter_init (adapter.c:2708) by 0x17E62E: btd_manager_register_adapter (manager.c:337) by 0x191171: mgmt_event.part.36 (mgmt.c:1081) by 0x4C7B824: g_main_context_dispatch (in /usr/lib64/libglib-2.0.so.0.3200.4) by 0x4C7BB57: ??? (in /usr/lib64/libglib-2.0.so.0.3200.4) by 0x4C7BF51: g_main_loop_run (in /usr/lib64/libglib-2.0.so.0.3200.4)
Diffstat (limited to 'src')
-rw-r--r--src/adapter.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/adapter.c b/src/adapter.c
index 8e6cbaa2..cfd6cbd7 100644
--- a/src/adapter.c
+++ b/src/adapter.c
@@ -2684,6 +2684,8 @@ static void load_config(struct btd_adapter *adapter)
mgmt_set_connectable(adapter->dev_id, TRUE);
mgmt_set_discoverable(adapter->dev_id, adapter->discoverable,
adapter->discov_timeout);
+
+ g_key_file_free(key_file);
}
gboolean adapter_init(struct btd_adapter *adapter, gboolean up)