From 88183ebdd35a2bd340d949382f593466dfc887de Mon Sep 17 00:00:00 2001 From: Mika Laitio Date: Mon, 13 Aug 2012 20:22:36 +0300 Subject: [PATCH] memory leak fix Signed-off-by: Mika Laitio --- src/DataReader.cc | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.41.1