Re: Curl POST emalloc leak?

From: Date: Sun, 18 May 2008 23:25:01 +0000
Subject: Re: Curl POST emalloc leak?
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-37712@lists.php.net to get a copy of this message
Rasmus Lerdorf wrote: > Note that you don't actually need to send the request. It looks like > repeatedly doing: > > $ch = curl_init(); > curl_setopt($ch, CURLOPT_POSTFIELDS, $args); > curl_close($ch); > > Is enough to do it. Still looking at the code. Seems like > zend_llist_clean(&ch->to_free.str); isn't doing the right thing somehow. Is this really related to curl? # php -n -r 'for($i=0;$i<10;$i++) { for($args="",$j=0;$j<75;$j++) $args .= "a=$j&"; unset($args); echo memory_get_usage()."\n"; }' 55872 56100 56172 56240 56304 56364 56420 56420 56420 56420 / manuel

« previous php.internals (#37712) next »