[svn-commits] russell: trunk r134541 - in /trunk: ./ funcs/func_curl.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Wed Jul 30 14:55:32 CDT 2008


Author: russell
Date: Wed Jul 30 14:55:31 2008
New Revision: 134541

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

........

Modified:
    trunk/   (props changed)
    trunk/funcs/func_curl.c

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.

Modified: trunk/funcs/func_curl.c
URL: http://svn.digium.com/view/asterisk/trunk/funcs/func_curl.c?view=diff&rev=134541&r1=134540&r2=134541
==============================================================================
--- trunk/funcs/func_curl.c (original)
+++ trunk/funcs/func_curl.c Wed Jul 30 14:55:31 2008
@@ -85,6 +85,8 @@
 	CURL **curl = data;
 
 	curl_easy_cleanup(*curl);
+
+	ast_free(data);
 }
 
 AST_THREADSTORAGE_CUSTOM(curl_instance, curl_instance_init, curl_instance_cleanup);




More information about the svn-commits mailing list