DiscussionsIssue archiveOCCT:Foundation Classes

Archived issue #0022753

Fix mismatch new/delete in Standard_Failure.cxx

CommunityOCCT:Foundation Classesclosed4 public notes

Search issues

Description

Post from the Forum - http://www.opencascade.org/org/forum/thread_21949/.
"string is created by new[] operator in allocate_message, and must then be deleted by delete[] and not delete in deallocate_message.Patch attached."
Leads to memory leak.

Steps to reproduce

No need.

Additional information

Patch is attached.

Public activity

4 archived notes

Participants are labeled by their role within this record.

01Commenter 1
Applied patch
branch http://svn/svn/occt/branches/OCC22753 is ready to be reviewed
02Commenter 2
Reviewed with no comments
03Commenter 3
Dear Commenter 1,
Workbench KAS:dev:mkv-22753-occt was created from SVN branch http://svn/svn/occt/branches/OCC22753
(and mkv-22753-products from trunk) and compiled on Linux platform.

There are not regressions in mkv-22753-products regarding to KAS:dev:products-652-opt:

See results in /QADisk/occttests/results/KAS/dev/mkv-22753-products_22112011/lin
See reference results in /QADisk/occttests/results/KAS/dev/products-652-opt_23092011/lin
See test cases in /QADisk/occttests/tests/ED
N.B. In order to launch testing case you can make use the following instructions
http://doc/doku.php?id=occt:certification

04Commenter 1
Integration into trunk of occt repository

Date: 2011-11-25 17:18:14 +0400 (Fri, 25 Nov 2011)
New Revision: 9549

Modified:
   trunk/src/Standard/Standard_Failure.cxx