dtinfo/MixedGen.C: coverity CID 89495; use after free
This commit is contained in:
@@ -160,9 +160,6 @@ create_node_dict( hashTable<CC_String,BTCollectable> &dict,
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
||||||
delete key;
|
|
||||||
delete value;
|
|
||||||
|
|
||||||
throw_exception = 1;
|
throw_exception = 1;
|
||||||
cerr << "(ERROR) Duplicate section ID = " << (const char *)*key << endl
|
cerr << "(ERROR) Duplicate section ID = " << (const char *)*key << endl
|
||||||
<< " found in file = " << filename << endl
|
<< " found in file = " << filename << endl
|
||||||
@@ -172,6 +169,8 @@ create_node_dict( hashTable<CC_String,BTCollectable> &dict,
|
|||||||
<< " found in file = " << val->filename() << endl
|
<< " found in file = " << val->filename() << endl
|
||||||
<< " at line = " << val->linenum() << "\n\n";
|
<< " at line = " << val->linenum() << "\n\n";
|
||||||
|
|
||||||
|
delete key;
|
||||||
|
delete value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user