Commit e23ba921 authored by Maksim Shabunin's avatar Maksim Shabunin

Fixed memory leak in ML module

"int * CvMLData::sample_idx" was not freed
parent ad71efb2
......@@ -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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment