Fix memory leak in demo. (#7216)

This commit is contained in:
Jiaming Yuan
2021-09-09 13:51:03 +08:00
committed by GitHub
parent b12e7f7edd
commit 68a2c7b8d6

View File

@@ -98,6 +98,7 @@ void DataIterator_Free(DataIter *self) {
}
free(self->data);
free(self->lengths);
free(self->labels);
safe_xgboost(XGDMatrixFree(self->_proxy));
};