From a690c1f7f8b4d3afe5b5382fbf4c346741a2027d Mon Sep 17 00:00:00 2001 From: Peter Howkins Date: Wed, 4 Jul 2018 23:17:18 +0100 Subject: [PATCH] dtcm: Coverity 88113 --- cde/programs/dtcm/server/lookup.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); } -- 2.25.1