diff -Nur libxml2-2.6.22.orig/valid.c libxml2-2.6.22/valid.c --- libxml2-2.6.22.orig/valid.c 2005-09-03 14:16:18.000000000 +0200 +++ libxml2-2.6.22/valid.c 2005-12-06 12:52:12.000000000 +0100 @@ -3108,7 +3108,7 @@ /*If the list is empty then remove the list entry in the hash */ if (xmlListEmpty(ref_list)) - xmlHashUpdateEntry(table, ID, NULL, (xmlHashDeallocator) + xmlHashRemoveEntry(table, ID, (xmlHashDeallocator) xmlFreeRefList); xmlFree(ID); return(0);