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:
c9f5a14
)
libDtHelp: Cov 89129 and 88355
author
Peter Howkins
<flibble@users.sf.net>
Sat, 11 Aug 2018 00:18:45 +0000
(
01:18
+0100)
committer
Peter Howkins
<flibble@users.sf.net>
Sat, 11 Aug 2018 00:18:45 +0000
(
01:18
+0100)
cde/lib/DtHelp/AccessSDL.c
patch
|
blob
|
history
diff --git
a/cde/lib/DtHelp/AccessSDL.c
b/cde/lib/DtHelp/AccessSDL.c
index 8d6d470fc03ab9b25edbd93ced283e39adb26376..1ba55565a9da4c3ce8d451aeb2e085f6a9b8383d 100644
(file)
--- a/
cde/lib/DtHelp/AccessSDL.c
+++ b/
cde/lib/DtHelp/AccessSDL.c
@@
-1381,8
+1381,11
@@
_DtHelpCeGetSdlDocStamp(
if (ret_time != NULL)
*ret_time = timestamp;
- if (result == 0 && (docId == NULL || timestamp == NULL))
+ if (result == 0 && (docId == NULL || timestamp == NULL)) {
+ free(docId); /* Incase only one of them is NULL */
+ free(timestamp); /* " */
return -1;
+ }
return result;
}