[Freeswitch-users] memory leak with switch_core_hash_insert

Juan Backson juanbackson at gmail.com
Tue Aug 18 08:04:31 PDT 2009


I am getting some strange vg malloc error message in switch_core_hash_insert.
Does anyone know what is wrong with these few lines?  Am I missing

param_name =switch_core_sprintf(pool,"%s", key);
param_value =switch_core_sprintf(pool,"%s", value);

==5459== 8,973 (2,344 direct, 6,629 indirect) bytes in 10 blocks are
definitely lost in loss record 62 of 89
==5459==    at 0x4A05809: malloc (vg_replace_malloc.c:149)
==5459==    by 0x4CEBB68: sqlite3MallocX (sqliteInt.h:278)
==5459==    by 0x4CE1C7E: rehash (hash.c:227)
==5459==    by 0x4CE206F: sqlite3HashInsert (hash.c:386)
==5459==    by 0x4C70EA4: switch_core_hash_insert (switch_core_hash.c:67)
==5459==    by 0x7CEAD07: ??? (mod_specialivr.c:343)
==5459==    by 0x7CEBF87: ??? (mod_specialivr.c:784)
==5459==    by 0x7CEDBF0: ??? (mod_specialivr.c:1778)
==5459==    by 0x4C790AC: switch_core_session_run
==5459==    by 0x4C751FF: switch_core_session_thread
==5459==    by 0x4FBC306: start_thread (in /lib64/libpthread-2.5.so)
==5459==    by 0x35018D1DEC: clone (in /lib64/libc-2.5.so)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20090818/71739092/attachment-0002.html 

More information about the FreeSWITCH-users mailing list