aboutsummaryrefslogtreecommitdiffstats
path: root/funcs
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2008-07-30 19:55:31 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2008-07-30 19:55:31 +0000
commit3ffd7f4411461cf619dc1e3e5e5567636f8e7692 (patch)
tree6b50c671d2c73e74e3a3f0d677770d987659fcf5 /funcs
parent1af9fe06b61b86a08c264b010e0ac0831b4cb6db (diff)
Merged revisions 134540 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r134540 | russell | 2008-07-30 14:52:53 -0500 (Wed, 30 Jul 2008) | 4 lines Fix a memory leak in func_curl. Every thread that used this function leaked an allocation the size of a pointer. (reported by jmls in #asterisk-dev) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@134541 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'funcs')
-rw-r--r--funcs/func_curl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/funcs/func_curl.c b/funcs/func_curl.c
index 6c0d9b767..3c4e50bd3 100644
--- a/funcs/func_curl.c
+++ b/funcs/func_curl.c
@@ -85,6 +85,8 @@ static void curl_instance_cleanup(void *data)
CURL **curl = data;
curl_easy_cleanup(*curl);
+
+ ast_free(data);
}
AST_THREADSTORAGE_CUSTOM(curl_instance, curl_instance_init, curl_instance_cleanup);