From: Peter Howkins Date: Wed, 4 Jul 2018 21:14:31 +0000 (+0100) Subject: dtcm: Coverity 88675 X-Git-Tag: 2.3.0a~181 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b0a656cf0edbf3dadf29b70e3ab8897d29282a37;p=oweals%2Fcde.git dtcm: Coverity 88675 --- diff --git a/cde/programs/dtcm/server/reutil.c b/cde/programs/dtcm/server/reutil.c index dfc0fc2f..1d7f3520 100644 --- a/cde/programs/dtcm/server/reutil.c +++ b/cde/programs/dtcm/server/reutil.c @@ -285,7 +285,7 @@ DeriveNewStartTime( Tick end_date; Tick an_event; int num_events; - RepeatEventState *res; + RepeatEventState *res = NULL; /* Count the number of events from the start time to the current time */ end_date = old_re->re_end_date; @@ -309,6 +309,8 @@ DeriveNewStartTime( ; } + free(res); + return an_event; }