We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ae933ed commit a6bea35Copy full SHA for a6bea35
1 file changed
src/clstepcore/Registry.cc
@@ -235,13 +235,13 @@ void Registry::RemoveType( const char * n ) {
235
*/
236
void Registry::RemoveClones( const EntityDescriptor & e ) {
237
const SchRename * alts = e.AltNameList();
238
- struct Element * tmp;
239
240
while( alts ) {
241
- tmp = new Element;
+ struct Element * tmp = new Element;
242
tmp->key = ( char * ) alts->objName();
243
SC_HASHsearch( primordialSwamp, tmp, HASH_DELETE );
244
alts = alts->next;
+ delete tmp;
245
}
246
247
0 commit comments