From f14e247a412cc5ba406974b5f79435542c1e8934 Mon Sep 17 00:00:00 2001 From: Peter Howkins Date: Sat, 11 Aug 2018 01:18:45 +0100 Subject: [PATCH] libDtHelp: Cov 89129 and 88355 --- cde/lib/DtHelp/AccessSDL.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cde/lib/DtHelp/AccessSDL.c b/cde/lib/DtHelp/AccessSDL.c index 8d6d470f..1ba55565 100644 --- 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; } -- 2.25.1