Skip to content

Commit

Permalink
Fix memory leak in demo. (#7216)
Browse files Browse the repository at this point in the history
  • Loading branch information
trivialfis committed Sep 9, 2021
1 parent b12e7f7 commit 68a2c7b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions demo/c-api/external-memory/external_memory.c
Expand Up @@ -98,6 +98,7 @@ void DataIterator_Free(DataIter *self) {
}
free(self->data);
free(self->lengths);
free(self->labels);
safe_xgboost(XGDMatrixFree(self->_proxy));
};

Expand Down

0 comments on commit 68a2c7b

Please sign in to comment.