fixed memory leak in ml module

This commit is contained in:
Ilya Lavrenov 2015-09-01 11:26:25 +03:00
parent 94cf5430d0
commit d7bb1025f3

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)