From: Peter Howkins Date: Fri, 10 Aug 2018 23:55:03 +0000 (+0100) Subject: libDtHelp: Cov 88109 X-Git-Tag: 2.3.0a~38 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=30809197c7798818427be02e9017dc34c886932c;p=oweals%2Fcde.git libDtHelp: Cov 88109 --- diff --git a/cde/lib/DtHelp/XInterface.c b/cde/lib/DtHelp/XInterface.c index c6dc351d..5c7450f7 100644 --- a/cde/lib/DtHelp/XInterface.c +++ b/cde/lib/DtHelp/XInterface.c @@ -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;