aboutsummaryrefslogtreecommitdiffstats
path: root/funcs
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2008-07-30 19:52:53 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2008-07-30 19:52:53 +0000
commit6d3eb92fde498c2364b6b98b1a619fa27b2c62d4 (patch)
treec51bcfd5b67f737c70933ecd2bc77093e56c3eae /funcs
parent9305638e50f5fe73048d3d83a6ddbbb6f9bfed03 (diff)
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/branches/1.4@134540 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 63d6a0597..bc6eadee0 100644
--- a/funcs/func_curl.c
+++ b/funcs/func_curl.c
@@ -89,6 +89,8 @@ static void curl_instance_cleanup(void *data)
CURL **curl = data;
curl_easy_cleanup(*curl);
+
+ free(data);
}
AST_THREADSTORAGE_CUSTOM(curl_instance, curl_instance_init, curl_instance_cleanup);