diff --git a/src/io/page_dmatrix-inl.hpp b/src/io/page_dmatrix-inl.hpp index df43d3b7f..82a373352 100644 --- a/src/io/page_dmatrix-inl.hpp +++ b/src/io/page_dmatrix-inl.hpp @@ -18,7 +18,7 @@ struct RowBatchPage { utils::Assert(data_ != NULL, "fail to allocate row batch page"); this->Clear(); } - ~BinaryPage(void) { + ~RowBatchPage(void) { if (data_ != NULL) delete [] data_; } /*! diff --git a/src/utils/io.h b/src/utils/io.h index 141d83f8c..23fa0d468 100644 --- a/src/utils/io.h +++ b/src/utils/io.h @@ -100,6 +100,7 @@ class ISeekStream: public IStream { /*! \brief implementation of file i/o stream */ class FileStream : public ISeekStream { public: + explicit FileStream(void) {} explicit FileStream(FILE *fp) { this->fp = fp; }