Commit 7460840a authored by Paul Eggert's avatar Paul Eggert Committed by Noam Postavsky
Browse files

Fix CHECK_ALLOCATED_AND_LIVE abort during GC

* src/editfns.c (save_restriction_restore):
Wait for the GC to free the temporary markers (Bug#30931).

(cherry picked from commit 670f2ffa)
parent 71192e0b
......@@ -3876,9 +3876,10 @@ save_restriction_restore (Lisp_Object data)
buf->clip_changed = 1; /* Remember that the narrowing changed. */
}
/* These aren't needed anymore, so don't wait for GC. */
free_marker (XCAR (data));
free_marker (XCDR (data));
/* This isn’t needed anymore, so don’t wait for GC.
Do not call free_marker on XCAR (data) or XCDR (data),
though, since record_marker_adjustments may have put
them on the buffer’s undo list (Bug#30931). */
free_cons (XCONS (data));
}
else
......
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