Merged revisions 134540 via svnmerge from
authorRussell Bryant <russell@russellbryant.com>
Wed, 30 Jul 2008 19:55:31 +0000 (19:55 +0000)
committerRussell Bryant <russell@russellbryant.com>
Wed, 30 Jul 2008 19:55:31 +0000 (19:55 +0000)
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: https://origsvn.digium.com/svn/asterisk/trunk@134541 65c4cc65-6c06-0410-ace0-fbb531ad65f3

funcs/func_curl.c

index 6c0d9b7..3c4e50b 100644 (file)
@@ -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);