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

SVN commits to the Digium repositories svn-commits at lists.digium.com
Sat Mar 24 18:49:42 CDT 2012


Author: russell
Date: Sat Mar 24 18:49:39 2012
New Revision: 360415

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=360415
Log:
func_curl: Fix leak of an ast_str in error handling code path.
........

Merged revisions 360413 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........

Merged revisions 360414 from http://svn.asterisk.org/svn/asterisk/branches/10

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

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

Modified: trunk/funcs/func_curl.c
URL: http://svnview.digium.com/svn/asterisk/trunk/funcs/func_curl.c?view=diff&rev=360415&r1=360414&r2=360415
==============================================================================
--- trunk/funcs/func_curl.c (original)
+++ trunk/funcs/func_curl.c Sat Mar 24 18:49:39 2012
@@ -608,6 +608,7 @@
 
 	if (!(curl = ast_threadstorage_get(&curl_instance, sizeof(*curl)))) {
 		ast_log(LOG_ERROR, "Cannot allocate curl structure\n");
+		ast_free(str);
 		return -1;
 	}
 




More information about the svn-commits mailing list