1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 23:33:05 +04:00

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
+1 -1
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()