=32505== ERROR SUMMARY: 5571 errors from 10 contexts (suppressed: 5683 from 3) ==32505== malloc/free: in use at exit: 108,214,335 bytes in 150,927 blocks. ==32505== malloc/free: 247,519 allocs, 96,592 frees, 145,024,005 bytes allocated. ==32505== For counts of detected errors, rerun with: -v ==32505== searching for pointers to 150,927 not-freed blocks. ==32505== checked 119,903,448 bytes. ==32505== ==32505== Thread 1: ==32505== ==32505== 20 bytes in 1 blocks are possibly lost in loss record 3 of 45 ==32505== at 0x4023D6E: malloc (vg_replace_malloc.c:207) ==32505== by 0x424F17F: strdup (in /lib/i686/cmov/libc-2.7.so) ==32505== by 0x8194F49: _ast_strdup (utils.h:543) ==32505== by 0x8117E57: add_to_load_order (loader.c:910) ==32505== by 0x81185AE: load_modules (loader.c:1081) ==32505== by 0x80859F6: main (asterisk.c:3815) ==32505== ==32505== ==32505== 4,808 bytes in 34 blocks are possibly lost in loss record 29 of 45 ==32505== at 0x4021E22: calloc (vg_replace_malloc.c:397) ==32505== by 0x4010C7B: _dl_allocate_tls (in /lib/ld-2.7.so) ==32505== by 0x4476672: pthread_create@@GLIBC_2.1 (in /lib/i686/cmov/libpthread-2.7.so) ==32505== by 0x8197457: ast_pthread_create_stack (utils.c:1058) ==32505== by 0x817F09A: add_notify (localtime.c:329) ==32505== by 0x817F561: tzload (localtime.c:706) ==32505== by 0x8181172: ast_tzset (localtime.c:1436) ==32505== by 0x818168E: ast_localtime (localtime.c:1549) ==32505== by 0x811F7AF: ast_log (logger.c:1168) ==32505== by 0x8120255: __ast_verbose_ap (logger.c:1436) ==32505== by 0x812028D: __ast_verbose (logger.c:1444) ==32505== by 0x8083FE6: main (asterisk.c:3340) ==32505== ==32505== ==32505== 10,836 bytes in 7 blocks are possibly lost in loss record 34 of 45 ==32505== at 0x4021E22: calloc (vg_replace_malloc.c:397) ==32505== by 0x8118DF0: ast_reentrancy_init (lock.h:446) ==32505== by 0x8118D85: __ast_pthread_mutex_init (lock.c:66) ==32505== by 0x814B3AB: ast_context_find_or_create (pbx.c:6966) ==32505== by 0x80FC688: load_config (features.c:5217) ==32505== by 0x81006BA: ast_features_init (features.c:6192) ==32505== by 0x8085942: main (asterisk.c:3793) ==32505== ==32505== ==32505== 77,599 (74,868 direct, 2,731 indirect) bytes in 949 blocks are definitely lost in loss record 39 of 45 ==32505== at 0x4021E22: calloc (vg_replace_malloc.c:397) ==32505== by 0x8194E75: _ast_calloc (utils.h:480) ==32505== by 0x80CB50B: ast_variable_new (config.c:236) ==32505== by 0x402C1BB: realtime_mysql (res_config_mysql.c:403) ==32505== by 0x80D0EC9: ast_load_realtime_helper (config.c:2120) ==32505== by 0x80D0F4A: ast_load_realtime (config.c:2149) ==32505== by 0x4F94FDA: realtime_peer (chan_sip.c:4661) ==32505== by 0x4F95C64: find_peer (chan_sip.c:4894) ==32505== by 0x4FFCB5E: sip_devicestate (chan_sip.c:25545) ==32505== by 0x80DA167: _ast_device_state (devicestate.c:348) ==32505== by 0x80DA1AA: ast_device_state (devicestate.c:363) ==32505== by 0x8141752: ast_extension_state2 (pbx.c:4218) ==32505== ==32505== ==32505== 111,456 bytes in 72 blocks are definitely lost in loss record 41 of 45 ==32505== at 0x4021E22: calloc (vg_replace_malloc.c:397) ==32505== by 0x8118DF0: ast_reentrancy_init (lock.h:446) ==32505== by 0x8118D85: __ast_pthread_mutex_init (lock.c:66) ==32505== by 0x814B3AB: ast_context_find_or_create (pbx.c:6966) ==32505== by 0x4E65F8B: ast_compile_ael2 (pval.c:4502) ==32505== by 0x4F0FFC6: pbx_load_module (pbx_ael.c:181) ==32505== by 0x4F1044E: load_module (pbx_ael.c:280) ==32505== by 0x81178B4: start_resource (loader.c:785) ==32505== by 0x81181B1: load_resource_list (loader.c:973) ==32505== by 0x81187FB: load_modules (loader.c:1126) ==32505== by 0x80859F6: main (asterisk.c:3815) ==32505== ==32505== ==32505== 709,688 bytes in 738 blocks are possibly lost in loss record 43 of 45 ==32505== at 0x4021E22: calloc (vg_replace_malloc.c:397) ==32505== by 0x8194E75: _ast_calloc (utils.h:480) ==32505== by 0x819526B: ast_str_create (strings.h:405) ==32505== by 0x8196ED9: handle_show_locks (utils.c:881) ==32505== by 0x80C9CFD: __ast_cli_register (cli.c:2056) ==32505== by 0x80CA03B: ast_cli_register (cli.c:2110) ==32505== by 0x80CA064: ast_cli_register_multiple (cli.c:2121) ==32505== by 0x8198F97: ast_utils_init (utils.c:1976) ==32505== by 0x80837CC: main (asterisk.c:3214) ==32505== ==32505== LEAK SUMMARY: ==32505== definitely lost: 186,324 bytes in 1,021 blocks. ==32505== indirectly lost: 2,731 bytes in 175 blocks. ==32505== possibly lost: 725,352 bytes in 780 blocks. ==32505== still reachable: 107,299,928 bytes in 148,951 blocks. ==32505== suppressed: 0 bytes in 0 blocks. ==32505== Reachable blocks (those to which a pointer was found) are not shown. ==32505== To see them, rerun with: --leak-check=full --show-reachable=yes