php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #46382 Mismatching allocation and deallocation in stresstest.cpp
Submitted: 2008-10-24 20:54 UTC Modified: 2008-10-24 23:17 UTC
From: dvice_null at yahoo dot com Assigned:
Status: Closed Package: *General Issues
PHP Version: 5.2CVS, 5.3CVS, 6CVS-2008-10-24 (CVS) OS: Error in source code
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: dvice_null at yahoo dot com
New email:
PHP Version: OS:

 

 [2008-10-24 20:54 UTC] 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.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-10-24 23:17 UTC] felipe@php.net
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.


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Jun 23 14:01:32 2025 UTC