From: Mika Laitio Date: Mon, 13 Aug 2012 17:22:36 +0000 (+0300) Subject: memory leak fix X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=88183ebdd35a2bd340d949382f593466dfc887de;p=libplp.git memory leak fix Signed-off-by: Mika Laitio --- diff --git a/src/DataReader.cc b/src/DataReader.cc index 00fc1f4..e6f184a 100644 --- a/src/DataReader.cc +++ b/src/DataReader.cc @@ -310,6 +310,7 @@ DataRange *DataReader::get_daily_summary(EnumSummaryCalculationType calc_type_pa if (data != NULL) { date = data->get_date(); ret_val = get_daily_summary(&date, calc_type_param); + delete(data); } return ret_val; }