Fixed memory leak in ML module

"int * CvMLData::sample_idx" was not freed
This commit is contained in:
Maksim Shabunin 2014-12-30 15:20:24 +03:00
parent ad71efb2cb
commit e23ba9215d

View File

@ -92,7 +92,7 @@ void CvMLData::free_train_test_idx()
{
cvReleaseMat( &train_sample_idx );
cvReleaseMat( &test_sample_idx );
sample_idx = 0;
cvFree(&sample_idx);
}
void CvMLData::clear()