diff options
author | Adam Harvey <aharvey@php.net> | 2013-08-19 11:58:57 -0700 |
---|---|---|
committer | Adam Harvey <aharvey@php.net> | 2013-08-19 12:01:04 -0700 |
commit | aa7d3d8e6d8de73ebe8dd015fb5392a4bde5bfc6 (patch) | |
tree | 21992fee2ec854a946dd6c2852e3b138e9409691 /ext/intl/breakiterator/codepointiterator_methods.cpp | |
parent | a4862503d485abf449e0565ac03157d859a31bf7 (diff) | |
download | php-git-aa7d3d8e6d8de73ebe8dd015fb5392a4bde5bfc6.tar.gz |
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).
Diffstat (limited to 'ext/intl/breakiterator/codepointiterator_methods.cpp')
0 files changed, 0 insertions, 0 deletions