fixed memory leak in ml module

(cherry picked from commit d7bb1025f3)
pull/5378/merge
Ilya Lavrenov 9 years ago committed by Alexander Smorkalov
parent 7e4e8921bc
commit b5e42d8cc1
  1. 3
      modules/ml/src/ertrees.cpp

@ -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…
Cancel
Save