From: Tom Tromey Date: Sun, 7 Jul 2013 20:30:31 +0000 (-0600) Subject: fix xfree bug in run_thread X-Git-Tag: emacs-26.0.90~1144^2~17^2~26 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=65ddc9fdcdda92707953501fcd0a0e271be9df55;p=emacs.git fix xfree bug in run_thread this fixes run_thread to account for the dummy slot in specpdl --- 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;