Fixed memory leak in ML module

"int * CvMLData::sample_idx" was not freed
pull/3565/head
Maksim Shabunin 10 years ago
parent ad71efb2cb
commit e23ba9215d
  1. 2
      modules/ml/src/data.cpp

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

Loading…
Cancel
Save