From b0548ce1116fb306eb640ea12e1edd4146796b64 Mon Sep 17 00:00:00 2001 From: Jon Trulson Date: Fri, 26 Dec 2014 14:08:24 -0700 Subject: [PATCH] DtTerm: Coverity (memory corruption) --- cde/lib/DtTerm/TermPrim/TermPrimUtil.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cde/lib/DtTerm/TermPrim/TermPrimUtil.c b/cde/lib/DtTerm/TermPrim/TermPrimUtil.c index df04eb34..6429ecaf 100644 --- a/cde/lib/DtTerm/TermPrim/TermPrimUtil.c +++ b/cde/lib/DtTerm/TermPrim/TermPrimUtil.c @@ -510,8 +510,9 @@ ForceCloseLog(DtTermPrimitiveWidget tw) if (tw->term.log_on) { - (void) fclose(tpd->logStream); (void) DeleteLogFileEntry(tpd->logStream); + (void) fclose(tpd->logStream); + tpd->logStream = NULL; tw->term.log_on = False; } } -- 2.25.1