From 1c0312de48555eb3bde6d63d1e372bdd6cd04d24 Mon Sep 17 00:00:00 2001 From: Peter Howkins Date: Sat, 11 Aug 2018 00:58:46 +0100 Subject: [PATCH] libDtHelp: Cov 88162 --- cde/lib/DtHelp/XInterface.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cde/lib/DtHelp/XInterface.c b/cde/lib/DtHelp/XInterface.c index 5c7450f7..4f8346c2 100644 --- a/cde/lib/DtHelp/XInterface.c +++ b/cde/lib/DtHelp/XInterface.c @@ -2020,7 +2020,10 @@ _DtHelpDALoadGraphic ( { fileName = (char *) malloc (strlen(vol_xid) + strlen (file_xid) + 2); if (fileName == NULL) + { + free(pGS); return -1; + } strcpy(fileName, vol_xid); -- 2.25.1