Commit: 385c0a22e322738879f7dfe1ac13a49d6e23e08f
Parent: 9afec68124039e6fb0064d3d7942ca17ab6367c5
Author: Ravi kumar Veeramally <ravikumar.veeramally@linux.intel.com>
Committer: Szymon Janc <szymon.janc@tieto.com>
Date: 2014-07-30 12:56:28
Tree: fa12bfc633b5e7384ec268ed93c5d105cd3585a2

android/tester: Fix memory leak Fixes valgrind report. ==26707== HEAP SUMMARY: ==26707== in use at exit: 4,943 bytes in 41 blocks ==26707== total heap usage: 25,702 allocs, 25,661 frees, 1,379,978 bytes allocated ==26707== ==26707== 8 bytes in 2 blocks are definitely lost in loss record 6 of 39 ==26707== at 0x4C2AB80: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==26707== by 0x5089610: g_malloc (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.4000.0) ==26707== by 0x50A0B57: g_memdup (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.4000.0) ==26707== by 0x40E57E: create_property (tester-main.c:623) ==26707== by 0x40F49C: pin_request_cb (tester-main.c:713) ==26707== by 0x5F70E7A: notification_handler (hal-ipc.c:125) ==26707== by 0x534B181: start_thread (pthread_create.c:312) ==26707== by 0x565C30C: clone (clone.S:111) ==26707== ==26707== 12 bytes in 2 blocks are definitely lost in loss record 7 of 39 ==26707== at 0x4C2AB80: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==26707== by 0x5089610: g_malloc (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.4000.0) ==26707== by 0x50A0B57: g_memdup (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.4000.0) ==26707== by 0x40E57E: create_property (tester-main.c:623) ==26707== by 0x40F467: pin_request_cb (tester-main.c:709) ==26707== by 0x5F70E7A: notification_handler (hal-ipc.c:125) ==26707== by 0x534B181: start_thread (pthread_create.c:312) ==26707== by 0x565C30C: clone (clone.S:111) ==26707== ==26707== LEAK SUMMARY: ==26707== definitely lost: 20 bytes in 4 blocks ==26707== indirectly lost: 0 bytes in 0 blocks ==26707== possibly lost: 0 bytes in 0 blocks ==26707== still reachable: 4,923 bytes in 37 blocks ==26707== suppressed: 0 bytes in 0 blocks

Diffstat

M android/tester-main.c | 3 +++

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

View Full Diff | Patch