Parent: c60d76b65e1c7d1eaac461187ee1a29320de1b53
Author: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2014-12-15 22:03:12
Tree: bbb56a04a735992ac912863b829f3c1ad748ffff
shared/gatt-client: Fix memory leak When parsing descriptors the code sometimes skips if the handle is outside the characteristic thus causing the data to leak: 224 bytes in 8 blocks are definitely lost in loss record 218 of 249 at 0x4C291D4: calloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) by 0x485734: discover_chrcs_cb (gatt-client.c:677) by 0x489B7B: discover_chrcs_cb (gatt-helpers.c:1227) by 0x4840F1: can_read_data (att.c:600) by 0x488ED4: watch_callback (io-glib.c:170) by 0x4E7A2A5: g_main_context_dispatch (in /usr/lib64/libglib-2.0.so.0.3800.2) by 0x4E7A627: ??? (in /usr/lib64/libglib-2.0.so.0.3800.2) by 0x4E7AA39: g_main_loop_run (in /usr/lib64/libglib-2.0.so.0.3800.2) by 0x40A992: main (main.c:631)
Diffstat
| M | src/shared/gatt-client.c | | | 4 | +++- |
1 files changed, 3 insertions(+), 1 deletions(-)