aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Tromey2013-07-07 14:30:31 -0600
committerTom Tromey2013-07-07 14:30:31 -0600
commit65ddc9fdcdda92707953501fcd0a0e271be9df55 (patch)
tree2ad8549a040de6060a5ad3bb320012b9a3f54d22
parent6dacdad5fcb278e5a16b38bb81786aac9ca27be4 (diff)
downloademacs-65ddc9fdcdda92707953501fcd0a0e271be9df55.tar.gz
emacs-65ddc9fdcdda92707953501fcd0a0e271be9df55.zip
fix xfree bug in run_thread
this fixes run_thread to account for the dummy slot in specpdl
-rw-r--r--src/thread.c2
1 files changed, 1 insertions, 1 deletions
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)
646 646
647 update_processes_for_thread_death (Fcurrent_thread ()); 647 update_processes_for_thread_death (Fcurrent_thread ());
648 648
649 xfree (self->m_specpdl); 649 xfree (self->m_specpdl - 1);
650 self->m_specpdl = NULL; 650 self->m_specpdl = NULL;
651 self->m_specpdl_ptr = NULL; 651 self->m_specpdl_ptr = NULL;
652 self->m_specpdl_size = 0; 652 self->m_specpdl_size = 0;