From: Peter Howkins Date: Fri, 10 Aug 2018 23:58:46 +0000 (+0100) Subject: libDtHelp: Cov 88162 X-Git-Tag: 2.3.0a~36 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=1c0312de48555eb3bde6d63d1e372bdd6cd04d24;p=oweals%2Fcde.git libDtHelp: Cov 88162 --- 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);