Commit b5e42d8c authored by Ilya Lavrenov's avatar Ilya Lavrenov Committed by Alexander Smorkalov

fixed memory leak in ml module

(cherry picked from commit d7bb1025)
parent 7e4e8921
...@@ -537,6 +537,9 @@ void CvERTreeTrainData::set_data( const CvMat* _train_data, int _tflag, ...@@ -537,6 +537,9 @@ void CvERTreeTrainData::set_data( const CvMat* _train_data, int _tflag,
if( data ) if( data )
delete data; delete data;
if ( pair16u32s_ptr )
cvFree( &pair16u32s_ptr );
if (_fdst) if (_fdst)
cvFree( &_fdst ); cvFree( &_fdst );
if (_idst) if (_idst)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment