Commit: 7d729d273351d217739162c9096d9210d2e26eab
Parent: 8374ac1f69ac4dd24a767ee7fb2f0c6aac557241
Author: Lukasz Rymanowski <lukasz.rymanowski@tieto.com>
Committer: Szymon Janc <szymon.janc@tieto.com>
Date: 2014-04-14 12:33:49
Tree: 30a01759418244af1280c48f4a77cf75fd2ef673

android/gatt: Fix memory leak It happens on daemon exit when connection is up. 295 (104 direct, 191 indirect) bytes in 1 blocks are definitely lost in loss record 140 of 148 ==25132== at 0x4C2B6CD: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==25132== by 0x4E7FBBD: g_try_malloc0 (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.3200.4) ==25132== by 0x437BF9: g_attrib_new (gattrib.c:495) ==25132== by 0x42F45F: connect_cb (gatt.c:845) ==25132== by 0x439DBA: connect_cb (btio.c:232) ==25132== by 0x4E79D12: g_main_context_dispatch (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.3200.4) ==25132== by 0x4E7A05F: ??? (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.3200.4) ==25132== by 0x4E7A459: g_main_loop_run (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.3200.4) ==25132== by 0x4044FD: main (main.c:531) This patch moves function connection_cleanup up in the file as this is needed by destroy_device

Diffstat

M android/gatt.c | 45 ++++++++++++++++++++++++- - - - - - - - - - - - - - - - - - - - -

1 files changed, 24 insertions(+), 21 deletions(-)

View Full Diff | Patch