[asterisk-commits] russell: branch 1.8 r360413 - /branches/1.8/funcs/func_curl.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Sat Mar 24 18:46:21 CDT 2012
Author: russell
Date: Sat Mar 24 18:46:16 2012
New Revision: 360413
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=360413
Log:
func_curl: Fix leak of an ast_str in error handling code path.
Modified:
branches/1.8/funcs/func_curl.c
Modified: branches/1.8/funcs/func_curl.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/funcs/func_curl.c?view=diff&rev=360413&r1=360412&r2=360413
==============================================================================
--- branches/1.8/funcs/func_curl.c (original)
+++ branches/1.8/funcs/func_curl.c Sat Mar 24 18:46:16 2012
@@ -595,6 +595,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