libDtHelp: Cov 88162
authorPeter Howkins <flibble@users.sf.net>
Fri, 10 Aug 2018 23:58:46 +0000 (00:58 +0100)
committerPeter Howkins <flibble@users.sf.net>
Fri, 10 Aug 2018 23:58:46 +0000 (00:58 +0100)
cde/lib/DtHelp/XInterface.c

index 5c7450f7ad355a524490c9fbd5d7de9e33e12c84..4f8346c275ca79ee68f86032df7a982ec32c791e 100644 (file)
@@ -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);