Commit: d5600f9918a0d2b6e9c5ea117574c2b0f5520926
Parent: 3465e976d4929ac3c3940278f716027c0b85f90a
Author: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2014-10-31 13:21:20
Tree: cc30407e47e715d805d04d9a8429c676f03940b9

shared/att: Fix another memory leak In case of bt_att_cancel_all before resetting destroy callback to NULL it needs to be called so the requestor can properly free the resources: 104 (40 direct, 64 indirect) bytes in 1 blocks are definitely lost in loss record 47 of 55 at 0x4C291D4: calloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) by 0x408359: bt_gatt_exchange_mtu (gatt-helpers.c:479) by 0x405345: bt_gatt_client_new (gatt-client.c:1196) by 0x401A4B: test_client (test-gatt.c:198) by 0x4E9E5E0: ??? (in /usr/lib64/libglib-2.0.so.0.3800.2) by 0x4E9E7A5: ??? (in /usr/lib64/libglib-2.0.so.0.3800.2) by 0x4E9E7A5: ??? (in /usr/lib64/libglib-2.0.so.0.3800.2) by 0x4E9E7A5: ??? (in /usr/lib64/libglib-2.0.so.0.3800.2) by 0x4E9EB1A: g_test_run_suite (in /usr/lib64/libglib-2.0.so.0.3800.2) by 0x40162E: main (test-gatt.c:265)

Diffstat

M src/shared/att.c | 30 +++++++++++++++++- - - - - - - - - - - - -

1 files changed, 17 insertions(+), 13 deletions(-)

View Full Diff | Patch