Commit 41adf328 authored by Eli Zaretskii's avatar Eli Zaretskii

Avoid duplicate calls to xfree for the same pointer

* src/alloc.c (sweep_symbols): Avoid freeing an already freed
pointer to a symbol's buffer-local value.  (Bug#29066)
parent 3e7ebbe1
......@@ -7024,7 +7024,9 @@ sweep_symbols (void)
if (!sym->s.gcmarkbit)
if (sym->s.redirect == SYMBOL_LOCALIZED)
if (sym->s.redirect == SYMBOL_LOCALIZED
/* Already freed? */
&& !EQ (sym->s.function, Vdead))
xfree (SYMBOL_BLV (&sym->s));
sym-> = symbol_free_list;
symbol_free_list = &sym->s;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment