==17371== Memcheck, a memory error detector ==17371== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al. ==17371== Using Valgrind-3.10.1 and LibVEX; rerun with -h for copyright info ==17371== Command: /home/laga/dev/wifidog-gateway/src/.libs/lt-wifidog -d 7 -f -c wifidog-mock.conf ==17371== Parent PID: 17366 ==17371== ==17371== ==17371== HEAP SUMMARY: ==17371== in use at exit: 386,502 bytes in 111 blocks ==17371== total heap usage: 45,624 allocs, 45,513 frees, 19,832,078 bytes allocated ==17371== ==17371== 32 bytes in 1 blocks are definitely lost in loss record 39 of 58 ==17371== at 0x4C29F90: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==17371== by 0x54F1F39: strdup (in /usr/lib/libc-2.21.so) ==17371== by 0x40B921: safe_strdup (safe.c:81) ==17371== by 0x4029CF: config_init (conf.c:174) ==17371== by 0x40797D: main (gateway.c:497) ==17371== ==17371== 272 bytes in 1 blocks are possibly lost in loss record 52 of 58 ==17371== at 0x4C2C080: calloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==17371== by 0x40117B1: allocate_dtv (in /usr/lib/ld-2.21.so) ==17371== by 0x401211D: _dl_allocate_tls (in /usr/lib/ld-2.21.so) ==17371== by 0x525CD85: pthread_create@@GLIBC_2.2.5 (in /usr/lib/libpthread-2.21.so) ==17371== by 0x407214: main_loop (gateway.c:429) ==17371== by 0x407C44: main (gateway.c:546) ==17371== ==17371== 272 bytes in 1 blocks are possibly lost in loss record 53 of 58 ==17371== at 0x4C2C080: calloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==17371== by 0x40117B1: allocate_dtv (in /usr/lib/ld-2.21.so) ==17371== by 0x401211D: _dl_allocate_tls (in /usr/lib/ld-2.21.so) ==17371== by 0x525CD85: pthread_create@@GLIBC_2.2.5 (in /usr/lib/libpthread-2.21.so) ==17371== by 0x407263: main_loop (gateway.c:437) ==17371== by 0x407C44: main (gateway.c:546) ==17371== ==17371== 11,616 bytes in 1 blocks are possibly lost in loss record 57 of 58 ==17371== at 0x4C29F90: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==17371== by 0x4E3A070: httpdGetConnection (api.c:333) ==17371== by 0x4072CA: main_loop (gateway.c:446) ==17371== by 0x407C44: main (gateway.c:546) ==17371== ==17371== 360,096 bytes in 31 blocks are definitely lost in loss record 58 of 58 ==17371== at 0x4C29F90: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==17371== by 0x4E3A070: httpdGetConnection (api.c:333) ==17371== by 0x4072CA: main_loop (gateway.c:446) ==17371== by 0x407C44: main (gateway.c:546) ==17371== ==17371== LEAK SUMMARY: ==17371== definitely lost: 360,128 bytes in 32 blocks ==17371== indirectly lost: 0 bytes in 0 blocks ==17371== possibly lost: 12,160 bytes in 3 blocks ==17371== still reachable: 14,214 bytes in 76 blocks ==17371== suppressed: 0 bytes in 0 blocks ==17371== Reachable blocks (those to which a pointer was found) are not shown. ==17371== To see them, rerun with: --leak-check=full --show-leak-kinds=all ==17371== ==17371== For counts of detected and suppressed errors, rerun with: -v ==17371== ERROR SUMMARY: 5 errors from 5 contexts (suppressed: 0 from 0)