From 3ea62fea56d467f6338269bb212cd32d2662b352 Mon Sep 17 00:00:00 2001 From: Peter Howkins Date: Wed, 4 Jul 2018 03:57:06 +0100 Subject: [PATCH] dtcm: Coverity 88910 --- cde/programs/dtcm/server/insert.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cde/programs/dtcm/server/insert.c b/cde/programs/dtcm/server/insert.c index 4adb74e9..4179a771 100644 --- a/cde/programs/dtcm/server/insert.c +++ b/cde/programs/dtcm/server/insert.c @@ -90,7 +90,7 @@ _DtCmsInsertEntry(_DtCmsCalendar *cal, cms_entry *entry) CSA_opaque_data opq; cms_attribute *aptr; RepeatEvent *re = NULL; - RepeatEventState *res; + RepeatEventState *res = NULL; extern void _DtCm_rule_parser(); uint count; int i; @@ -176,6 +176,9 @@ _DtCmsInsertEntry(_DtCmsCalendar *cal, cms_entry *entry) } } + /* Tidy unused variable */ + free(res); + if ((stat = _DtCmsCheckStartEndTime(entry)) != CSA_SUCCESS) return (stat); -- 2.25.1