summaryrefslogtreecommitdiff
path: root/funcs
diff options
context:
space:
mode:
authorMatthew Jordan <mjordan@digium.com>2015-01-12 15:18:04 +0000
committerMatthew Jordan <mjordan@digium.com>2015-01-12 15:18:04 +0000
commitdc993db55c7bb91c5470c0fb54009c95faae357b (patch)
tree0c891d9755dd572a927501f59863946f6a0b7797 /funcs
parent4791d629d1885d7c908a2ab9b85f0e8de966de23 (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 git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/13@430488 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'funcs')
-rw-r--r--funcs/func_curl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/funcs/func_curl.c b/funcs/func_curl.c
index 22ee5821c..0e90ca64e 100644
--- a/funcs/func_curl.c
+++ b/funcs/func_curl.c
@@ -198,6 +198,7 @@ static void curlds_free(void *data)
free(setting);
}
AST_LIST_HEAD_DESTROY(list);
+ ast_free(list);
}
enum optiontype {