From 0516d09938ac3d433b3ce77161b6bce255b0d507 Mon Sep 17 00:00:00 2001 From: Kohei Ozaki Date: Sat, 12 Jul 2014 17:29:49 +0900 Subject: [PATCH] fix (trivial) leak in xgboost_regrank --- regrank/xgboost_regrank.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/regrank/xgboost_regrank.h b/regrank/xgboost_regrank.h index 356b82683..02a6001d3 100644 --- a/regrank/xgboost_regrank.h +++ b/regrank/xgboost_regrank.h @@ -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