From: Peter Howkins Date: Wed, 4 Jul 2018 23:10:58 +0000 (+0100) Subject: dtcm: Coverity 174810 X-Git-Tag: 2.3.0a~153 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=e91f12cc54e3dfd633ee0d1d41bef754e139b4ce;p=oweals%2Fcde.git dtcm: Coverity 174810 --- 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;