cat valgrind.txt ==23111== Memcheck, a memory error detector ==23111== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al. ==23111== Using Valgrind-3.9.0 and LibVEX; rerun with -h for copyright info ==23111== Command: asterisk -c ==23111== Parent PID: 2958 ==23111== ==23111== Invalid free() / delete / delete[] / realloc() ==23111== at 0x4C28577: free (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) ==23111== by 0x5195AFB: __libc_freeres (in /usr/lib64/libc-2.18.so) ==23111== by 0x4A226B4: _vgnU_freeres (in /usr/lib64/valgrind/vgpreload_core-amd64-linux.so) ==23111== by 0x506D0AA: __run_exit_handlers (in /usr/lib64/libc-2.18.so) ==23111== by 0x506D134: exit (in /usr/lib64/libc-2.18.so) ==23111== by 0x445E1F: really_quit (asterisk.c:1925) ==23111== by 0x4455E3: quit_handler (asterisk.c:1736) ==23111== by 0x446769: handle_stop_gracefully (asterisk.c:2237) ==23111== by 0x4A39A8: ast_cli_command_full (cli.c:2691) ==23111== by 0x44629C: consolehandler (asterisk.c:2094) ==23111== by 0x44D03C: main (asterisk.c:4412) ==23111== Address 0x53eb3c0 is 0 bytes inside data symbol "noai6ai_cached" ==23111== ==23111== ==23111== FILE DESCRIPTORS: 5 open at exit. ==23111== Open AF_INET socket 7: 208.78.162.196:60649 <-> 208.78.162.174:3306 ==23111== at 0x5129E97: socket (in /usr/lib64/libc-2.18.so) ==23111== by 0xB477236: mysql_real_connect (in /usr/lib64/libmyodbc5a.so) ==23111== by 0xB44C5D5: myodbc_do_connect (in /usr/lib64/libmyodbc5a.so) ==23111== by 0xB44D507: MySQLConnect (in /usr/lib64/libmyodbc5a.so) ==23111== by 0xB468FD3: SQLConnect (in /usr/lib64/libmyodbc5a.so) ==23111== by 0xAD8CB77: SQLConnect (in /usr/lib64/libodbc.so.2.0.0) ==23111== by 0xAB788E8: odbc_obj_connect (res_odbc.c:1549) ==23111== by 0xAB7741D: _ast_odbc_request_obj2 (res_odbc.c:1271) ==23111== by 0xAB781F2: _ast_odbc_request_obj (res_odbc.c:1444) ==23111== by 0xAB7645B: odbc_register_class (res_odbc.c:1034) ==23111== by 0xAB75C88: load_odbc_config (res_odbc.c:918) ==23111== by 0xAB79C65: load_module (res_odbc.c:1887) ==23111== ==23111== Open file descriptor 3: /valgrind.txt ==23111== ==23111== ==23111== Open file descriptor 2: /dev/pts/4 ==23111== ==23111== ==23111== Open file descriptor 1: /dev/pts/4 ==23111== ==23111== ==23111== Open file descriptor 0: /dev/pts/4 ==23111== ==23111== ==23111== ==23111== HEAP SUMMARY: ==23111== in use at exit: 509,852 bytes in 1,889 blocks ==23111== total heap usage: 464,493 allocs, 462,605 frees, 36,915,997 bytes allocated ==23111== ==23111== LEAK SUMMARY: ==23111== definitely lost: 120 bytes in 2 blocks ==23111== indirectly lost: 0 bytes in 0 blocks ==23111== possibly lost: 1,312 bytes in 4 blocks ==23111== still reachable: 508,420 bytes in 1,883 blocks ==23111== suppressed: 0 bytes in 0 blocks ==23111== Rerun with --leak-check=full to see details of leaked memory ==23111== ==23111== For counts of detected and suppressed errors, rerun with: -v ==23111== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 2 from 2)