fixed memory leak in ml module

(cherry picked from commit d7bb1025f32ed268da7230cae3e8cb413dbab282)
This commit is contained in:
Ilya Lavrenov 2015-09-01 11:26:25 +03:00 committed by Alexander Smorkalov
parent 7e4e8921bc
commit b5e42d8cc1

View File

@ -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)