1
0
Fork 0
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:
Peter Howkins 2018-08-11 01:18:45 +01:00
parent c9f5a14778
commit f14e247a41

View file

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