fix (trivial) leak in xgboost_regrank

This commit is contained in:
Kohei Ozaki 2014-07-12 17:29:49 +09:00
parent 1620cfc9e8
commit 0516d09938

View File

@ -27,6 +27,10 @@ namespace xgboost{
obj_ = NULL;
name_obj_ = "reg:linear";
}
/*! \brief destructor */
~RegRankBoostLearner(void){
delete obj_;
}
/*!
* \brief a regression booter associated with training and evaluating data
* \param mats array of pointers to matrix whose prediction result need to be cached