]> pilppa.com Git - libplp.git/commitdiff
memory leak fix
authorMika Laitio <lamikr@pilppa.org>
Mon, 13 Aug 2012 17:22:36 +0000 (20:22 +0300)
committerMika Laitio <lamikr@pilppa.org>
Mon, 13 Aug 2012 17:22:36 +0000 (20:22 +0300)
Signed-off-by: Mika Laitio <lamikr@pilppa.org>
src/DataReader.cc

index 00fc1f4da9f1d0462eb5bf77acc9fc4949951fc8..e6f184a050637fec945d9363924ebc0a7c9a9bea 100644 (file)
@@ -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;
 }