Merge pull request #16 from smly/minor-leak
fix (trivial) leak in xgboost_regrank, Thanks for the fix
This commit is contained in:
commit
497fc86998
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user