Commit: f942320125dddc0ef2f2f497251289c8457b10d4
Parent: 9ee1038cff9e9e3eaa637df94704801cf09cbe66
Author: Anderson Lizardo <anderson.lizardo@openbossa.org>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2013-06-12 10:57:43
Tree: e74d63042f092aec09cd20d9a3ae7382081a165f

audio: Fix memory leak while creating SDP records Fix these leaks: ==674== 8 bytes in 1 blocks are definitely lost in loss record 45 of 201 ==674== at 0x402BE68: malloc (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so) ==674== by 0x80DF653: sdp_list_append (sdp.c:1742) ==674== by 0x8063974: avrcp_ct_record (avrcp.c:297) ==674== by 0x8068A6D: avrcp_remote_register (avrcp.c:3149) ==674== by 0x805F31C: avrcp_remote_server_probe (manager.c:320) ==674== by 0x80BCB4E: probe_profile (adapter.c:2629) ==674== by 0x80C5880: btd_profile_foreach (profile.c:639) ==674== by 0x80C3FD4: adapter_register (adapter.c:5619) ==674== by 0x80C4A01: read_info_complete (adapter.c:5894) ==674== by 0x80D489A: request_complete (mgmt.c:221) ==674== by 0x80D4BA8: received_data (mgmt.c:319) ==674== by 0x40BF17D: ??? (in /lib/i386-linux-gnu/libglib-2.0.so.0.3200.3) ==674== ==674== 32 bytes in 1 blocks are definitely lost in loss record 127 of 201 ==674== at 0x402BE68: malloc (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so) ==674== by 0x80DCE49: sdp_data_alloc_with_length (sdp.c:360) ==674== by 0x80DD33F: sdp_data_alloc (sdp.c:497) ==674== by 0x806379D: avrcp_ct_record (avrcp.c:272) ==674== by 0x8068A6D: avrcp_remote_register (avrcp.c:3149) ==674== by 0x805F31C: avrcp_remote_server_probe (manager.c:320) ==674== by 0x80BCB4E: probe_profile (adapter.c:2629) ==674== by 0x80C5880: btd_profile_foreach (profile.c:639) ==674== by 0x80C3FD4: adapter_register (adapter.c:5619) ==674== by 0x80C4A01: read_info_complete (adapter.c:5894) ==674== by 0x80D489A: request_complete (mgmt.c:221) ==674== by 0x80D4BA8: received_data (mgmt.c:319)

Diffstat

M profiles/audio/avrcp.c | 14 ++++++++- - - - - -

1 files changed, 8 insertions(+), 6 deletions(-)

View Full Diff | Patch