From: Peter Howkins Date: Wed, 4 Jul 2018 22:17:18 +0000 (+0100) Subject: dtcm: Coverity 88113 X-Git-Tag: 2.3.0a~171 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a690c1f7f8b4d3afe5b5382fbf4c346741a2027d;p=oweals%2Fcde.git dtcm: Coverity 88113 --- diff --git a/cde/programs/dtcm/server/lookup.c b/cde/programs/dtcm/server/lookup.c index 92d231b5..31b921f3 100644 --- a/cde/programs/dtcm/server/lookup.c +++ b/cde/programs/dtcm/server/lookup.c @@ -498,7 +498,7 @@ _EnumerateSequence( CSA_return_code stat2 = CSA_SUCCESS; cms_entry *eptr; time_t fsttick, tick; - RepeatEventState *restate; + RepeatEventState *restate = NULL; eptr = (cms_entry *)lnode->data; fsttick = eptr->key.time; @@ -562,6 +562,7 @@ _EnumerateSequence( eptr->attrs[CSA_ENTRY_ATTR_END_DATE_I].value->\ item.date_time_value = etime; } + free(restate); return (stat); }