From f74bf1a29f268a280a36d243d27ff7eeb128e9e9 Mon Sep 17 00:00:00 2001 From: Peter Howkins Date: Sat, 11 Aug 2018 01:03:23 +0100 Subject: [PATCH] libDtHelp: Cov 88240 --- cde/lib/DtHelp/FormatCCDF.c | 4 ++++ 1 file changed, 4 insertions(+) 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. -- 2.25.1