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( &train_sample_idx );
|
||||||
cvReleaseMat( &test_sample_idx );
|
cvReleaseMat( &test_sample_idx );
|
||||||
sample_idx = 0;
|
cvFree(&sample_idx);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CvMLData::clear()
|
void CvMLData::clear()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user