MantisBT - Community
View Issue Details
0022936Community[OCCT] OCCT:Modeling Algorithmspublic2012-01-30 14:392012-04-16 12:26
Pawel 
bugmaster 
normalminor 
closedfixed 
ALL
[OCCT] 6.5.2 
[OCCT] 6.5.3[OCCT] 6.5.3 
Test case is not required
0022936: Memory leak in inc\MAT_Mat.gxx line
the lines

if (noofarea == 0) {
cout <<" Erreur d allocation "<<endl;
return;
}

do not delete the previously allocated variables: 'firstarea' and 'lastarea'. I would change the code to:

if (noofarea == 0) {
cout <<" Erreur d allocation "<<endl;
     if(firstarea != NULL) delete [] firstarea;
     if(lastarea != NULL) delete [] lastarea;
return;
}
No tags attached.
Issue History
2012-01-30 14:39PawelNew Issue
2012-01-30 14:39PawelAssigned To => jgv
2012-01-30 14:46abvNote Added: 0019307
2012-01-30 14:46abvAssigned Tojgv => dbv
2012-01-30 14:46abvStatusnew => assigned
2012-02-06 13:51dbvNote Added: 0019406
2012-02-06 13:51dbvAssigned Todbv => abv
2012-02-06 13:51dbvStatusassigned => resolved
2012-02-06 15:38abvNote Added: 0019409
2012-02-06 15:38abvAssigned Toabv => dbv
2012-02-06 15:38abvStatusresolved => reviewed
2012-02-08 10:46abvTarget Version => 6.5.3
2012-02-14 13:14mkvAssigned Todbv => mkv
2012-02-15 18:00mkvNote Added: 0019588
2012-02-15 18:01mkvTest case number => Test case is not required
2012-02-15 18:01mkvAssigned Tomkv => dbv
2012-02-15 18:01mkvStatusreviewed => assigned
2012-02-15 18:25mkvNote Added: 0019590
2012-02-15 18:25mkvNote Deleted: 0019588
2012-02-15 18:26mkvStatusassigned => resolved
2012-02-15 18:26mkvStatusresolved => reviewed
2012-02-15 18:26mkvStatusreviewed => tested
2012-02-17 12:11bugmasterNote Added: 0019614
2012-02-17 12:11bugmasterStatustested => verified
2012-02-17 12:11bugmasterResolutionopen => fixed
2012-02-17 12:11bugmasterAssigned Todbv => Pawel
2012-03-29 17:26bugmasterChangeset attached => occt master f391e9f2
2012-04-12 17:17PawelNote Added: 0020372
2012-04-16 12:26PawelAssigned ToPawel => bugmaster

Notes
(0019307)
abv   
2012-01-30 14:46   
Please replace C pointers by TColStd_Array1OfInteger
(0019406)
dbv   
2012-02-06 13:51   
C pointers has been replaced by TColStd_Array1OfInteger

Branch http://svn/svn/occt/branches/OCC22936 [^] is ready to be reviewed.

Dear Andrey,
Please review.
(0019409)
abv   
2012-02-06 15:38   
Reviewed with no remarks, please test
(0019590)
mkv   
2012-02-15 18:25   
Dear BugMaster,
Workbench KAS:dev:mkv-22936-occt was created from SVN branch http://svn/svn/occt/branches/OCC22936 [^]
(and mkv-22936-products from trunk) and compiled on Linux platform.
There are not regressions in mkv-22936-products regarding to KAS:dev:products-20120127-opt

See results in /QADisk/occttests/results/KAS/dev/mkv-22936-products_14022012/lin
See reference results in /QADisk/occttests/results/KAS/dev/products-20120127-opt_28012012/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 [^]
(0019614)
bugmaster   
2012-02-17 12:11   
Integrated into trunk of occt repository

Date: 2012-02-17 12:09:20 +0400 (Fri, 17 Feb 2012)
New Revision: 10497

Modified:
   trunk/src/MAT/MAT_Mat.gxx
(0020372)
Pawel   
2012-04-12 17:17   
Verified. Please close.