aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorSebastian Herbszt <herbszt@gmx.de>2011-04-23 12:18:21 +0200
committerH. Peter Anvin <hpa@zytor.com>2011-04-23 11:01:10 -0700
commit0919f75e1a2a9e417441472cbf81128768b1b017 (patch)
tree14dd66e1c5207f1d63f6d95f8913545325434e64 /core
parent53ecbda7a9977735494c72748f54c164d5367e99 (diff)
downloadsyslinux-0919f75e1a2a9e417441472cbf81128768b1b017.tar.gz
syslinux-0919f75e1a2a9e417441472cbf81128768b1b017.tar.xz
syslinux-0919f75e1a2a9e417441472cbf81128768b1b017.zip
thread: free curr->rmstack
Free curr->rmstack instead of double free of curr->stack. Signed-off-by: Sebastian Herbszt <herbszt@gmx.de> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'core')
-rw-r--r--core/thread/exit_thread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/thread/exit_thread.c b/core/thread/exit_thread.c
index 4da224bc..f5986242 100644
--- a/core/thread/exit_thread.c
+++ b/core/thread/exit_thread.c
@@ -16,7 +16,7 @@ __noreturn __exit_thread(void)
/* Free allocated stacks (note: free(NULL) is permitted and safe). */
free(curr->stack);
- free(curr->stack);
+ free(curr->rmstack);
/*
* Note: __schedule() can explictly handle the case where