From 30809197c7798818427be02e9017dc34c886932c Mon Sep 17 00:00:00 2001 From: Peter Howkins Date: Sat, 11 Aug 2018 00:55:03 +0100 Subject: [PATCH] libDtHelp: Cov 88109 --- 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 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; -- 2.25.1