From: Peter Howkins Date: Fri, 13 Jul 2018 15:35:47 +0000 (+0100) Subject: dtcm: Coverity 88871 X-Git-Tag: 2.3.0a~142 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=71bbe173212b8e75ae35e5e7748ec7ec4541671f;p=oweals%2Fcde.git dtcm: Coverity 88871 --- diff --git a/cde/programs/dtcm/server/lookup.c b/cde/programs/dtcm/server/lookup.c index 0ac58d10..e27549e8 100644 --- a/cde/programs/dtcm/server/lookup.c +++ b/cde/programs/dtcm/server/lookup.c @@ -372,9 +372,10 @@ _DtCmsGetEntryAttrByKey( else stat = CSA_E_NO_AUTHORITY; - if (entry_r) + if (entry_r) { + free(res); return (stat); - else { + } else { res->stat = stat; *res_r = res; return (CSA_SUCCESS);