From: Peter Howkins Date: Sat, 11 Aug 2018 00:01:13 +0000 (+0100) Subject: libDtHelp: Cov 88209 X-Git-Tag: 2.3.0a~35 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a97c7370a5d236ef04859ec0f6a5193d6f583748;p=oweals%2Fcde.git libDtHelp: Cov 88209 --- 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); }