From e91f12cc54e3dfd633ee0d1d41bef754e139b4ce Mon Sep 17 00:00:00 2001 From: Peter Howkins Date: Thu, 5 Jul 2018 00:10:58 +0100 Subject: [PATCH] dtcm: Coverity 174810 --- cde/programs/dtcm/dtcm/calendarA.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cde/programs/dtcm/dtcm/calendarA.c b/cde/programs/dtcm/dtcm/calendarA.c index 88843f3f..c588ff4c 100644 --- a/cde/programs/dtcm/dtcm/calendarA.c +++ b/cde/programs/dtcm/dtcm/calendarA.c @@ -1853,6 +1853,8 @@ reset_timer(Calendar *c) { _csa_iso8601_to_tick(reminders[0].run_time, &reminder_tick); c->view->next_alarm_id = XtAppAddTimeOut(c->xcontext->app, (max(reminder_tick - now(), 1) * 1000), reminder_driver, c); + } else { + free(reminders); } return stat; -- 2.25.1