Commit: ae4186cea7a8292e9b4fdd9e67d5f86a11f965c7
Parent: 65add82a0a533d81f526c9bcfff5fb832bfe34d5
Author: Alex Deymo <deymo@chromium.org>
Committer: Johan Hedberg <johan.hedberg@intel.com>
Date: 2013-04-23 10:39:16
Tree: cd37f2c99e2573c5fd78a14b2ec7f0682acdc945

input: Fix memory leak for hidp_connadd_req. If the struct input_device is destroyed while a hidp_connad_req is pending, the input_device will be destroyed leaking the associated memory. ==30790== 492 (168 direct, 324 indirect) bytes in 1 blocks are definitely lost in loss record 199 of 216 ==30790== at 0x4C29DB4: calloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==30790== by 0x4E7FAE0: g_malloc0 (gmem.c:189) ==30790== by 0x4378E4: hidp_add_connection (device.c:365) ==30790== by 0x438055: input_device_connected (device.c:525) ==30790== by 0x4380DA: interrupt_connect_cb (device.c:548) ==30790== by 0x443508: connect_cb (btio.c:230) ==30790== by 0x4E79D52: g_main_context_dispatch (gmain.c:2539) ==30790== by 0x4E7A09F: g_main_context_iterate.isra.23 (gmain.c:3146) ==30790== by 0x4E7A499: g_main_loop_run (gmain.c:3340) ==30790== by 0x448CCC: main (main.c:583)

Diffstat

M profiles/input/device.c | 5 +++++

1 files changed, 5 insertions(+), 0 deletions(-)

View Full Diff | Patch