[asterisk-commits] russell: branch 1.4 r134540 - /branches/1.4/funcs/func_curl.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Jul 30 14:52:54 CDT 2008


Author: russell
Date: Wed Jul 30 14:52:53 2008
New Revision: 134540

URL: http://svn.digium.com/view/asterisk?view=rev&rev=134540
Log:
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)

Modified:
    branches/1.4/funcs/func_curl.c

Modified: branches/1.4/funcs/func_curl.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/funcs/func_curl.c?view=diff&rev=134540&r1=134539&r2=134540
==============================================================================
--- branches/1.4/funcs/func_curl.c (original)
+++ branches/1.4/funcs/func_curl.c Wed Jul 30 14:52:53 2008
@@ -89,6 +89,8 @@
 	CURL **curl = data;
 
 	curl_easy_cleanup(*curl);
+
+	free(data);
 }
 
 AST_THREADSTORAGE_CUSTOM(curl_instance, curl_instance_init, curl_instance_cleanup);




More information about the asterisk-commits mailing list