; Fix an assertion

* src/lisp.h (safe_free): Don't assert only xfree can be used.
This commit is contained in:
Gerd Möllmann 2025-01-08 04:43:50 +01:00
parent 3aa8573ea6
commit e4ed2cbea1

View file

@ -6185,7 +6185,12 @@ safe_free (specpdl_ref sa_count)
specpdl_ptr--;
if (specpdl_ptr->kind == SPECPDL_UNWIND_PTR)
{
#ifdef HAVE_MPS
eassert (specpdl_ptr->unwind_ptr.func == xfree
|| specpdl_ptr->unwind_ptr.func == igc_xfree);
#else
eassert (specpdl_ptr->unwind_ptr.func == xfree);
#endif
xfree (specpdl_ptr->unwind_ptr.arg);
}
else