MantisBT - Community
View Issue Details
0022932Community[OCCT] OCCT:Foundation Classespublic2012-01-27 18:542012-04-16 12:32
Pawel 
bugmaster 
normalminor 
closedfixed 
ALL
[OCCT] 6.5.2 
[OCCT] 6.5.3[OCCT] 6.5.3 
test case is not required
0022932: Memory leak in math_FunctionRoots.cxx line 254
the lines

if( Nvalid < N ) {
Done = Standard_False;
return;
}

do not delete the previously allocated variable 'ptrval'. I would change the code to:

if( Nvalid < N ) {
Done = Standard_False;
delete [] ptrval;
return;
}
No tags attached.
Issue History
2012-01-27 18:54PawelNew Issue
2012-01-27 18:54PawelAssigned To => abv
2012-01-30 17:44abvNote Added: 0019313
2012-01-30 17:44abvAssigned Toabv => dbv
2012-01-30 17:44abvStatusnew => assigned
2012-02-08 10:02dbvNote Added: 0019447
2012-02-08 10:02dbvAssigned Todbv => abv
2012-02-08 10:02dbvStatusassigned => resolved
2012-02-08 10:45abvNote Added: 0019450
2012-02-08 10:45abvAssigned Toabv => dbv
2012-02-08 10:45abvStatusresolved => reviewed
2012-02-08 10:46abvTarget Version => 6.5.3
2012-02-14 13:13mkvAssigned Todbv => aan
2012-02-15 18:16aanNote Added: 0019589
2012-02-15 18:17aanNote Edited: 0019589bug_revision_view_page.php?bugnote_id=19589#r3476
2012-02-15 18:17aanTest case number => test case is not required
2012-02-15 18:17aanStatusreviewed => tested
2012-02-17 12:15bugmasterNote Added: 0019616
2012-02-17 12:15bugmasterStatustested => verified
2012-02-17 12:15bugmasterResolutionopen => fixed
2012-02-17 12:15bugmasterAssigned Toaan => Pawel
2012-03-29 17:26bugmasterChangeset attached => occt master 232a3086
2012-04-12 17:10PawelNote Added: 0020369
2012-04-16 12:32PawelAssigned ToPawel => bugmaster

Notes
(0019313)
abv   
2012-01-30 17:44   
Please use TColStd_Array1OfReal instead of plain C pointer
(0019447)
dbv   
2012-02-08 10:02   
TColStd_Array1OfReal used instead of plain C pointer

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

Dear Andrey,
Please review.
(0019450)
abv   
2012-02-08 10:45   
No remarks, please test
(0019589)
aan   
2012-02-15 18:16   
(edited on: 2012-02-15 18:17)
Dear BugMaster,
Workbench KAS:dev:aan-22932-occt from SVN branch http://svn/svn/occt/branches/22932 [^]
(and aan-22932-products from trunk) was successfully compiled on Linux and Windows platforms, and tested on Linux and Windows platforms.

There are not regressions in aan-22932-products regarding to KAS:dev:products-20120210-opt

See results in /QADisk/occttests/results/KAS/dev/aan-22932-products_14022012/lin
See reference results in /QADisk/occttests/results/KAS/dev/products-20120210-opt_10022012/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 [^]

(0019616)
bugmaster   
2012-02-17 12:15   
Integrated into trunk of occt repository

Date: 2012-02-17 12:14:03 +0400 (Fri, 17 Feb 2012)
New Revision: 10498

Modified:
   trunk/src/math/math_FunctionRoots.cxx
(0020369)
Pawel   
2012-04-12 17:10   
Verified. Please close.