1
0
mirror of https://github.com/php/php-src.git synced 2026-04-19 14:01:01 +02:00
Files
archived-php-src/ext/curl/tests
Adam Harvey aa7d3d8e6d Track created curl_slist structs by option so they can be updated in situ.
At present, when curl_setopt() is called with an option that requires the
creation of a curl_slist, we simply push the new curl_slist onto a list to be
freed when the curl handle is freed. This avoids a memory leak, but means that
repeated calls to curl_setopt() on the same handle with the same option wastes
previously allocated memory on curl_slist structs that will no longer be read.

This commit changes the zend_llist that was previously used to track the lists
to a HashTable keyed by the option number, which means that we can simply
update the hash table each time curl_setopt() is called.

Fixes bug #65458 (curl memory leak).
2013-08-19 12:01:04 -07:00
..
2011-12-07 16:46:48 +00:00
2011-05-31 12:57:40 +00:00
2011-09-07 10:34:58 +00:00
2009-07-17 20:44:50 +00:00
2009-07-17 20:44:50 +00:00
2009-07-17 20:44:50 +00:00
2010-08-06 23:01:32 +00:00
2011-09-07 10:34:58 +00:00