Merge pull request #16 from smly/minor-leak
fix (trivial) leak in xgboost_regrank, Thanks for the fix
This commit is contained in:
commit
4a98205ef1
@ -27,6 +27,10 @@ namespace xgboost{
|
|||||||
obj_ = NULL;
|
obj_ = NULL;
|
||||||
name_obj_ = "reg:linear";
|
name_obj_ = "reg:linear";
|
||||||
}
|
}
|
||||||
|
/*! \brief destructor */
|
||||||
|
~RegRankBoostLearner(void){
|
||||||
|
delete obj_;
|
||||||
|
}
|
||||||
/*!
|
/*!
|
||||||
* \brief a regression booter associated with training and evaluating data
|
* \brief a regression booter associated with training and evaluating data
|
||||||
* \param mats array of pointers to matrix whose prediction result need to be cached
|
* \param mats array of pointers to matrix whose prediction result need to be cached
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user