1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-02-15 04:32:24 +00:00

dtinfo/MixedGen.C: coverity CID 89495; use after free

This commit is contained in:
Jon Trulson 2018-03-31 14:42:22 -06:00
parent 3c72e21cb2
commit 0c0b77a509

View file

@ -160,9 +160,6 @@ create_node_dict( hashTable<CC_String,BTCollectable> &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<CC_String,BTCollectable> &dict,
<< " found in file = " << val->filename() << endl
<< " at line = " << val->linenum() << "\n\n";
delete key;
delete value;
}
}