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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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));
};