[asterisk-commits] russell: branch 10 r360414 - in /branches/10: ./ funcs/func_curl.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Sat Mar 24 18:47:46 CDT 2012


Author: russell
Date: Sat Mar 24 18:47:42 2012
New Revision: 360414

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

Modified:
    branches/10/   (props changed)
    branches/10/funcs/func_curl.c

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

Modified: branches/10/funcs/func_curl.c
URL: http://svnview.digium.com/svn/asterisk/branches/10/funcs/func_curl.c?view=diff&rev=360414&r1=360413&r2=360414
==============================================================================
--- branches/10/funcs/func_curl.c (original)
+++ branches/10/funcs/func_curl.c Sat Mar 24 18:47:42 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 asterisk-commits mailing list