PHP :: Bug #65458 :: curl memory leak
| Bug #65458 | curl memory leak | ||||
|---|---|---|---|---|---|
| Submitted: | 2013-08-16 06:56 UTC | Modified: | 2013-08-19 19:21 UTC | ||
| From: | peter57 at post dot sk | Assigned: | aharvey (profile) | ||
| Status: | Closed | Package: | cURL related | ||
| PHP Version: | 5.5.2 | OS: | Linux | ||
| Private report: | No | CVE-ID: | None | ||
[2013-08-16 06:56 UTC] peter57 at post dot sk
Description: ------------ When CURLOPT_HTTPHEADER is called more than once on the same curl handle, php/curl does not free the memory of the previous header data. Similar to bug 63859. Test script: --------------- <?php $ch = curl_init(); echo memory_get_usage(), "\n"; for ($i = 0; $i < 10000; $i++) { curl_setopt($ch, CURLOPT_HTTPHEADER, [ "SOAPAction: getItems" ]); } echo memory_get_usage(), "\n"; curl_close($ch); echo memory_get_usage(), "\n";
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2013-08-17 15:43 UTC] peter57 at post dot sk
-Operating System: Linux/Windows +Operating System: Linux -PHP Version: 5.4.18 +PHP Version: 5.5.2
[2013-08-17 15:43 UTC] peter57 at post dot sk
[2013-08-19 19:20 UTC] aharvey@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: aharvey