fix (trivial) leak in xgboost_regrank
This commit is contained in:
parent
1620cfc9e8
commit
0516d09938
@ -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