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:
parent
3c72e21cb2
commit
0c0b77a509
1 changed files with 2 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue