dtcm: Coverity 174810
authorPeter Howkins <flibble@users.sf.net>
Wed, 4 Jul 2018 23:10:58 +0000 (00:10 +0100)
committerPeter Howkins <flibble@users.sf.net>
Wed, 4 Jul 2018 23:10:58 +0000 (00:10 +0100)
cde/programs/dtcm/dtcm/calendarA.c

index 88843f3fdbe18bc32b51ddb2cdecfadc0634ee3d..c588ff4cf601c3f4f7176740240dbe3323552126 100644 (file)
@@ -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;