From a97c7370a5d236ef04859ec0f6a5193d6f583748 Mon Sep 17 00:00:00 2001 From: Peter Howkins Date: Sat, 11 Aug 2018 01:01:13 +0100 Subject: [PATCH] libDtHelp: Cov 88209 --- cde/lib/DtHelp/FormatSDL.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cde/lib/DtHelp/FormatSDL.c b/cde/lib/DtHelp/FormatSDL.c index 50495efb..54bddcbd 100644 --- a/cde/lib/DtHelp/FormatSDL.c +++ b/cde/lib/DtHelp/FormatSDL.c @@ -3853,7 +3853,10 @@ ResolveSnref( my_struct->ui_info->client_data, interpStr, runData, &newData) || NULL == newData || 0 == strlen(newData)) + { + free(newData); return NULL; + } /* * set the match data for toss lookup @@ -3876,7 +3879,10 @@ ResolveSnref( if (0 != MySaveString(&newSeg, my_struct, newData, my_struct->cur_link, my_struct->mb_len, False)) + { + free(newData); return NULL; + } free(newData); } -- 2.25.1