From 65ddc9fdcdda92707953501fcd0a0e271be9df55 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Sun, 7 Jul 2013 14:30:31 -0600 Subject: [PATCH] fix xfree bug in run_thread this fixes run_thread to account for the dummy slot in specpdl --- src/thread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/thread.c b/src/thread.c index a8e79e8377d..c7ffaced5c1 100644 --- a/src/thread.c +++ b/src/thread.c @@ -646,7 +646,7 @@ run_thread (void *state) update_processes_for_thread_death (Fcurrent_thread ()); - xfree (self->m_specpdl); + xfree (self->m_specpdl - 1); self->m_specpdl = NULL; self->m_specpdl_ptr = NULL; self->m_specpdl_size = 0; -- 2.39.5