From: Peter Howkins Date: Wed, 4 Jul 2018 22:45:56 +0000 (+0100) Subject: dtcm: Coverity 88871 X-Git-Tag: 2.3.0a~163 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=801c7d36c67e58b133633cf7e4a17f18e69d36ab;p=oweals%2Fcde.git dtcm: Coverity 88871 --- diff --git a/cde/programs/dtcm/server/lookup.c b/cde/programs/dtcm/server/lookup.c index 31b921f3..0ac58d10 100644 --- a/cde/programs/dtcm/server/lookup.c +++ b/cde/programs/dtcm/server/lookup.c @@ -401,9 +401,10 @@ _DtCmsGetEntryAttrByKey( } } - if (entry_r) + if (entry_r) { + free(res); stat = _DtCmsGetCmsEntryForClient(entry, entry_r,B_FALSE); - else { + } else { if (num_names == 0) stat = _GetAllEntryAttrs(entry, &res->num_attrs, &res->attrs);