fixed memory leak in ml module
This commit is contained in:
parent
94cf5430d0
commit
d7bb1025f3
@ -537,6 +537,9 @@ void CvERTreeTrainData::set_data( const CvMat* _train_data, int _tflag,
|
||||
if( data )
|
||||
delete data;
|
||||
|
||||
if ( pair16u32s_ptr )
|
||||
cvFree( &pair16u32s_ptr );
|
||||
|
||||
if (_fdst)
|
||||
cvFree( &_fdst );
|
||||
if (_idst)
|
||||
|
Loading…
x
Reference in New Issue
Block a user