<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Hi,</div><div><br></div><div>You're missing:</div>switch_core_hash_destroy(&hash)<div><div><br><div apple-content-edited="true"> <div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><span class="Apple-style-span" style="font-size: 12px; "><div>Mathieu Rene</div><div>Avant-Garde Solutions Inc</div><div>Office: + 1 (514) 664-1044 x100</div><div>Cell: +1 (514) 664-1044 x200</div><div><a href="mailto:mrene@avgs.ca">mrene@avgs.ca</a></div><div><br></div><div><br></div></span></div></div><br class="Apple-interchange-newline"> </div><br><div><div>On 18-Aug-09, at 11:04 AM, Juan Backson wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hi,<br><br>I am getting some strange vg malloc error message in <span style="color: rgb(255, 0, 0);">switch_core_hash_insert. </span><font color="#000000">Does anyone know what is wrong with these few lines? Am I missing something?</font><br> <br><br>switch_core_hash_init(&hash,pool);<br>param_name =switch_core_sprintf(pool,"%s", key); <br>param_value =switch_core_sprintf(pool,"%s", value); <br><span style="color: rgb(255, 0, 0);">switch_core_hash_insert(hash,param_name,param_value);</span><br> <br><br>==5459== <br>==5459== 8,973 (2,344 direct, 6,629 indirect) bytes in 10 blocks are definitely lost in loss record 62 of 89<br>==5459== at 0x4A05809: malloc (vg_replace_malloc.c:149)<br>==5459== by 0x4CEBB68: sqlite3MallocX (sqliteInt.h:278)<br> ==5459== by 0x4CE1C7E: rehash (hash.c:227)<br>==5459== by 0x4CE206F: sqlite3HashInsert (hash.c:386)<br>==5459== by 0x4C70EA4: switch_core_hash_insert (switch_core_hash.c:67)<br>==5459== by 0x7CEAD07: ??? (mod_specialivr.c:343)<br> ==5459== by 0x7CEBF87: ??? (mod_specialivr.c:784)<br>==5459== by 0x7CEDBF0: ??? (mod_specialivr.c:1778)<br>==5459== by 0x4C790AC: switch_core_session_run (switch_core_state_machine.c:109)<br>==5459== by 0x4C751FF: switch_core_session_thread (switch_core_session.c:1066)<br> ==5459== by 0x4FBC306: start_thread (in /lib64/<a href="http://libpthread-2.5.so">libpthread-2.5.so</a>)<br>==5459== by 0x35018D1DEC: clone (in /lib64/<a href="http://libc-2.5.so">libc-2.5.so</a>)<br>==5459== <br> _______________________________________________<br>FreeSWITCH-users mailing list<br><a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<br>UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<br>http://www.freeswitch.org<br></blockquote></div><br></div></div></body></html>