From 313bd72e2484a97f8b2433e297796a2d275618e6 Mon Sep 17 00:00:00 2001 From: Peter Howkins Date: Wed, 4 Jul 2018 21:52:19 +0100 Subject: [PATCH] dtcm: Coverity 174711 --- cde/programs/dtcm/server/cmscalendar.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cde/programs/dtcm/server/cmscalendar.c b/cde/programs/dtcm/server/cmscalendar.c index 8858732c..8daeb539 100644 --- a/cde/programs/dtcm/server/cmscalendar.c +++ b/cde/programs/dtcm/server/cmscalendar.c @@ -1130,10 +1130,13 @@ _GetAccessList(_DtCmsCalendar *cal, int index, cms_attribute *attr) tmpattr.value = &tmpval; tmpval.type = CSA_VALUE_ACCESS_LIST; + free(alist); return (_DtCm_copy_cms_attribute(attr, &tmpattr, B_TRUE)); - } else + } else { + free(alist); return (stat); + } } } -- 2.25.1