mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-02-15 04:32:24 +00:00
libDtHelp: Cov 89129 and 88355
This commit is contained in:
parent
c9f5a14778
commit
f14e247a41
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue