pierrick Mon, 05 Dec 2011 22:23:19 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=320466
Log: We should free the memory of any curl_slist returned by curl_easy_getinfo Changed paths: U php/php-src/trunk/ext/curl/interface.c Modified: php/php-src/trunk/ext/curl/interface.c =================================================================== --- php/php-src/trunk/ext/curl/interface.c 2011-12-05 21:55:40 UTC (rev 320465) +++ php/php-src/trunk/ext/curl/interface.c 2011-12-05 22:23:19 UTC (rev 320466) @@ -3031,6 +3031,7 @@ add_next_index_string(return_value, slist->data, 1); slist = slist->next; } + curl_slist_free_all(slist); } else { RETURN_FALSE; }
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php