[asterisk-commits] trunk r13628 - /trunk/channel.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Sun Mar 19 14:01:07 MST 2006
Author: russell
Date: Sun Mar 19 15:01:04 2006
New Revision: 13628
URL: http://svn.digium.com/view/asterisk?rev=13628&view=rev
Log:
fix memory leak due to not freeing the channel's string fields in
ast_channel_destroy() (issue #6746)
Modified:
trunk/channel.c
Modified: trunk/channel.c
URL: http://svn.digium.com/view/asterisk/trunk/channel.c?rev=13628&r1=13627&r2=13628&view=diff
==============================================================================
--- trunk/channel.c (original)
+++ trunk/channel.c Sun Mar 19 15:01:04 2006
@@ -1006,6 +1006,7 @@
while ((vardata = AST_LIST_REMOVE_HEAD(headp, entries)))
ast_var_delete(vardata);
+ ast_string_field_free_all(chan);
free(chan);
AST_LIST_UNLOCK(&channels);
More information about the asterisk-commits
mailing list