From: Peter Howkins Date: Wed, 4 Jul 2018 20:52:19 +0000 (+0100) Subject: dtcm: Coverity 174711 X-Git-Tag: 2.3.0a~185 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=313bd72e2484a97f8b2433e297796a2d275618e6;p=oweals%2Fcde.git dtcm: Coverity 174711 --- 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); + } } }