mirror of
https://github.com/opencv/opencv.git
synced 2024-11-25 11:40:44 +08:00
Fixed memory leak in ML module
"int * CvMLData::sample_idx" was not freed
This commit is contained in:
parent
ad71efb2cb
commit
e23ba9215d
@ -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…
Reference in New Issue
Block a user