[syslinux:lwip] thread: free curr->rmstack
syslinux-bot for Sebastian Herbszt
herbszt at gmx.de
Sun Apr 24 21:03:18 PDT 2011
Commit-ID: 0919f75e1a2a9e417441472cbf81128768b1b017
Gitweb: http://syslinux.zytor.com/commit/0919f75e1a2a9e417441472cbf81128768b1b017
Author: Sebastian Herbszt <herbszt at gmx.de>
AuthorDate: Sat, 23 Apr 2011 12:18:21 +0200
Committer: H. Peter Anvin <hpa at zytor.com>
CommitDate: Sat, 23 Apr 2011 11:01:10 -0700
thread: free curr->rmstack
Free curr->rmstack instead of double free of curr->stack.
Signed-off-by: Sebastian Herbszt <herbszt at gmx.de>
Signed-off-by: H. Peter Anvin <hpa at zytor.com>
---
core/thread/exit_thread.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/core/thread/exit_thread.c b/core/thread/exit_thread.c
index 4da224b..f598624 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
More information about the Syslinux-commits
mailing list