Skip to content

Commit

Permalink
Merge pull request #16 from smly/minor-leak
Browse files Browse the repository at this point in the history
fix (trivial) leak in xgboost_regrank, Thanks for the fix
  • Loading branch information
tqchen committed Jul 12, 2014
2 parents 2c4038b + c38877b commit b5d14e8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions regrank/xgboost_regrank.h
Expand Up @@ -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
Expand Down

0 comments on commit b5d14e8

Please sign in to comment.