Merge pull request #16 from smly/minor-leak

fix (trivial) leak in xgboost_regrank, Thanks for the fix
This commit is contained in:
Tianqi Chen 2014-07-12 09:58:07 -07:00
commit 497fc86998

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