From 606f7a599d69efc792b77a762579d9bdc1bdc531 Mon Sep 17 00:00:00 2001 From: Peter Howkins Date: Wed, 4 Jul 2018 20:23:57 +0100 Subject: [PATCH] dtcm: Coverity 88107 --- cde/programs/dtcm/server/cmsfunc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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, -- 2.25.1