Skip to content

Commit 42a9175

Browse files
author
pierrick
committed
We should free the memory of any curl_slist returned by curl_easy_getinfo
git-svn-id: http://svn.php.net/repository/php/php-src/trunk@320466 c90b9560-bf6c-de11-be94-00142212c4b1
1 parent d3cbd2a commit 42a9175

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ext/curl/interface.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3031,6 +3031,7 @@ PHP_FUNCTION(curl_getinfo)
30313031
add_next_index_string(return_value, slist->data, 1);
30323032
slist = slist->next;
30333033
}
3034+
curl_slist_free_all(slist);
30343035
} else {
30353036
RETURN_FALSE;
30363037
}

0 commit comments

Comments
 (0)