From: Peter Howkins Date: Sat, 11 Aug 2018 00:03:23 +0000 (+0100) Subject: libDtHelp: Cov 88240 X-Git-Tag: 2.3.0a~34 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f74bf1a29f268a280a36d243d27ff7eeb128e9e9;p=oweals%2Fcde.git libDtHelp: Cov 88240 --- diff --git a/cde/lib/DtHelp/FormatCCDF.c b/cde/lib/DtHelp/FormatCCDF.c index 1fb4eb8c..c053d736 100644 --- a/cde/lib/DtHelp/FormatCCDF.c +++ b/cde/lib/DtHelp/FormatCCDF.c @@ -684,7 +684,11 @@ AllocateSegments ( priv = (FrmtPrivateInfo *) realloc ((void *) priv, sizeof(FrmtPrivateInfo) * new_size); if (NULL == priv) + { + free(p_seg); + p_seg = NULL; return NULL; + } /* * reattach the private information with their segments.