Title: Message
Hi all,
 
We have been experiencing memory usage increasing in Asterisk, sometimes reaching over 150MB. After compiling Asterisk with the MALLOC_DEBUG option, I was able to see that some memory was allocated and never freed in the ast_expr.y. Note that the leak is obvious because I do an extensive usage of variable in the dialplan (GotoIf). Basically, I noticed that the free_value() function frees the contents of the structure 'struct val', but does not free the structure as is. I did the followng modification to ast_expr.y and the leak seems to go away.
 
218,220d217
<
< if (vp)
< free (vp);
 
Any feedback?
 
Regards,
 
Claude Klimos
IT Director
Aheeva Technology
Tel.: 514-448-4905 #2210
 
 
_______________________________________________
Asterisk-Dev mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-dev
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-dev

Reply via email to