diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-03-19 21:01:04 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-03-19 21:01:04 +0000 |
commit | b35095d70b5c743206eb98056d003cb0135560a7 (patch) | |
tree | e66fa662801ee0bb20b267671fec9fc7069a9f73 /channel.c | |
parent | f09eaa074193fcdd1d78271c3a73c84a50367a31 (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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |