#46382 [Opn->Csd]: Mismatching allocation and deallocation in stresstest.cpp
| From: | felipe@php.net | Date: | Fri, 24 Oct 2008 23:17:32 +0000 |
| Subject: | #46382 [Opn->Csd]: Mismatching allocation and deallocation in stresstest.cpp | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-130077@lists.php.net to get a copy of this message | ||
ID: 46382
Updated by: felipe@php.net
Reported By: dvice_null at yahoo dot com
-Status: Open
+Status: Closed
Bug Type: *General Issues
Operating System: Error in source code
-PHP Version: 6CVS-2008-10-24 (CVS)
+PHP Version: 5.2CVS, 5.3CVS, 6CVS-2008-10-24 (CVS)
New Comment:
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2008-10-24 20:54:37] dvice_null at yahoo dot com
Description:
------------
In file sapi/isapi/stresstest/stresstest.cpp:274
HANDLE *threads = new HANDLE[numThreads];
<code removed>
delete threads;
You allocate memory using [], but you delete the memory without [].
This is illegal in C++. If you allocate with [] you should also delete
with [].
I didn't check if the problem is with earlier versions also.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=46382&edit=1