From 2b2a1225da4a31b75ff379b7fcf8126089aef3ed Mon Sep 17 00:00:00 2001 From: Peter Howkins Date: Sat, 11 Aug 2018 00:57:11 +0100 Subject: [PATCH] libDtHelp: Cov 88119 --- cde/lib/DtHelp/AccessSDL.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cde/lib/DtHelp/AccessSDL.c b/cde/lib/DtHelp/AccessSDL.c index 716f88f3..8d6d470f 100644 --- a/cde/lib/DtHelp/AccessSDL.c +++ b/cde/lib/DtHelp/AccessSDL.c @@ -415,7 +415,10 @@ AsciiKeyword ( (wchar_t *) _DtCvStringOfStringSeg(p_list), newLen + 1); if ((size_t) -1 == newLen) + { + free(goodStr); return NULL; + } len += newLen; } -- 2.25.1