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

index c6dc351d057bf38e8a63222cd11f992502b0000b..5c7450f7ad355a524490c9fbd5d7de9e33e12c84 100644 (file)
@@ -1868,7 +1868,10 @@ _DtHelpDAResolveSpc (
                                (sizeof(DtHelpSpecialChars)*pDAS->max_spc));
 
                if (pDAS->spc_chars == NULL)
+                 {
+                   free(pReg);
                    return -1;
+                 }
 
                for (i = pDAS->cur_spc; i < pDAS->max_spc; i++)
                    pDAS->spc_chars[i].spc_idx = -1;