diff --git a/cde/programs/dtcm/server/lookup.c b/cde/programs/dtcm/server/lookup.c index 31b921f3b..0ac58d102 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);