Christian Weisgerber <[email protected]> ha escrit:
> The junk-fill malloc() debugging function on BSD reveals that there is
> some sort of use-after-free() bug in 1.23.
Thanks. Please apply the attached patch.
Regards,
Sergey
diff --git a/src/names.c b/src/names.c
index 2beaf3e..a3c6f58 100644
--- a/src/names.c
+++ b/src/names.c
@@ -986,6 +986,7 @@ collect_and_sort_names (void)
{
if (p->child)
rebase_child_list (p->child, name);
+ hash_delete (nametab, name);
/* FIXME: remove_directory (p->caname); ? */
remname (p);
free_name (p);