projects
/
oweals
/
cde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8f2b74a
)
dtcm: Coverity 88871
author
Peter Howkins
<flibble@users.sf.net>
Wed, 4 Jul 2018 22:45:56 +0000
(23:45 +0100)
committer
Peter Howkins
<flibble@users.sf.net>
Wed, 4 Jul 2018 22:45:56 +0000
(23:45 +0100)
cde/programs/dtcm/server/lookup.c
patch
|
blob
|
history
diff --git
a/cde/programs/dtcm/server/lookup.c
b/cde/programs/dtcm/server/lookup.c
index 31b921f3b57f4be493eafbc506c0d3d313d2c7b5..0ac58d102826b6689e8a12cbd511d5e09e4e3991 100644
(file)
--- 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);