From 6800911a750b104f823da587d99aeba86857a0dd Mon Sep 17 00:00:00 2001 From: Kent Hansen Date: Sun, 31 Jan 2010 19:23:46 +0100 Subject: [PATCH] fix double deletion bug in symtab_remove() If one entry is copied into another, we don't want to delete that entry. --- symtab.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/symtab.c b/symtab.c index 9e46080..d189858 100644 --- a/symtab.c +++ b/symtab.c @@ -209,9 +209,7 @@ static void binary_delete(symtab *st, symtab_entry *z) z->def = y->def; z->symtab = y->symtab; z->tag = y->tag; - } - - if (y != NULL) { + } else { symtab_entry_finalize(y); } } -- 2.11.4.GIT