From: Peter Howkins Date: Wed, 4 Jul 2018 19:23:57 +0000 (+0100) Subject: dtcm: Coverity 88107 X-Git-Tag: 2.3.0a~186 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=606f7a599d69efc792b77a762579d9bdc1bdc531;p=oweals%2Fcde.git dtcm: Coverity 88107 --- diff --git a/cde/programs/dtcm/server/cmsfunc.c b/cde/programs/dtcm/server/cmsfunc.c index 86dc10f0..787fa4bd 100644 --- a/cde/programs/dtcm/server/cmsfunc.c +++ b/cde/programs/dtcm/server/cmsfunc.c @@ -1017,8 +1017,10 @@ cms_update_entry_5_svc(cms_update_args *args, struct svc_req *svcrq) if (res.stat == CSA_SUCCESS) cal->modified = B_TRUE; - else + else { + free(appt); return (&res); + } /* do callback */ cal->rlist = _DtCmsDoV1CbForV4Data(cal->rlist, user, args->pid,