From: Russell Bryant Date: Sun, 19 Mar 2006 21:01:04 +0000 (+0000) Subject: fix memory leak due to not freeing the channel's string fields in X-Git-Tag: 1.4.0-beta1~2391 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a3fe92b352e8b7a5a7248a36c6a52004c7f11c46;p=thirdparty%2Fasterisk.git fix memory leak due to not freeing the channel's string fields in ast_channel_destroy() (issue #6746) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@13628 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channel.c b/channel.c index e804f7ae96..fdf2c97c17 100644 --- a/channel.c +++ b/channel.c @@ -1006,6 +1006,7 @@ void ast_channel_free(struct ast_channel *chan) while ((vardata = AST_LIST_REMOVE_HEAD(headp, entries))) ast_var_delete(vardata); + ast_string_field_free_all(chan); free(chan); AST_LIST_UNLOCK(&channels);