dtcm: Coverity 88871

This commit is contained in:
Peter Howkins 2018-07-04 23:45:56 +01:00
parent 8f2b74aa6d
commit 801c7d36c6
1 changed files with 3 additions and 2 deletions

View File

@ -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);