aboutsummaryrefslogtreecommitdiffstats
path: root/channel.c
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-03-19 21:01:04 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-03-19 21:01:04 +0000
commitb35095d70b5c743206eb98056d003cb0135560a7 (patch)
treee66fa662801ee0bb20b267671fec9fc7069a9f73 /channel.c
parentf09eaa074193fcdd1d78271c3a73c84a50367a31 (diff)
fix memory leak due to not freeing the channel's string fields in
ast_channel_destroy() (issue #6746) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@13628 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channel.c')
-rw-r--r--channel.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/channel.c b/channel.c
index e804f7ae9..fdf2c97c1 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);