diff options
author | Matthew Jordan <mjordan@digium.com> | 2015-01-12 15:18:24 +0000 |
---|---|---|
committer | Matthew Jordan <mjordan@digium.com> | 2015-01-12 15:18:24 +0000 |
commit | b38acbce6e7ebf54da81d67c1e9ea4eabb732ea8 (patch) | |
tree | fd31c37a5bacaa13ce11bc5845a802409e936dce /funcs | |
parent | fba836cc02a3d873c4d726f41b585eedb8cc8512 (diff) |
funcs/func_curl: Fix memory leak when CURLOPT channel datastore is destroyed
When the channel datastore associated with the usage of CURLOPT on a specific
channel is freed, the underlying structure holding the list of options is not
disposed of. This patch properly frees the structure in the datastore .destroy
callback.
ASTERISK-24672 #close
Reported by: Kristian Hogh
patches:
func_curl-memory-leak.diff uploaded by Kristian Hogh (License 6639)
........
Merged revisions 430487 from http://svn.asterisk.org/svn/asterisk/branches/11
........
Merged revisions 430488 from http://svn.asterisk.org/svn/asterisk/branches/13
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@430489 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'funcs')
-rw-r--r-- | funcs/func_curl.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/funcs/func_curl.c b/funcs/func_curl.c index 6c96f8e70..ad66112fc 100644 --- a/funcs/func_curl.c +++ b/funcs/func_curl.c @@ -198,6 +198,7 @@ static void curlds_free(void *data) ast_free(setting); } AST_LIST_HEAD_DESTROY(list); + ast_free(list); } enum optiontype { |