From 0c0b77a5096f73ae106ba0faa57e271cdb9d3aa1 Mon Sep 17 00:00:00 2001 From: Jon Trulson Date: Sat, 31 Mar 2018 14:42:22 -0600 Subject: [PATCH] dtinfo/MixedGen.C: coverity CID 89495; use after free --- cde/programs/dtinfo/dtinfogen/infolib/etc/MixedGen.C | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cde/programs/dtinfo/dtinfogen/infolib/etc/MixedGen.C b/cde/programs/dtinfo/dtinfogen/infolib/etc/MixedGen.C index 2836206d..ca527675 100644 --- a/cde/programs/dtinfo/dtinfogen/infolib/etc/MixedGen.C +++ b/cde/programs/dtinfo/dtinfogen/infolib/etc/MixedGen.C @@ -160,9 +160,6 @@ create_node_dict( hashTable &dict, } else { - delete key; - delete value; - throw_exception = 1; cerr << "(ERROR) Duplicate section ID = " << (const char *)*key << endl << " found in file = " << filename << endl @@ -172,6 +169,8 @@ create_node_dict( hashTable &dict, << " found in file = " << val->filename() << endl << " at line = " << val->linenum() << "\n\n"; + delete key; + delete value; } } -- 2.25.1