From 0919f75e1a2a9e417441472cbf81128768b1b017 Mon Sep 17 00:00:00 2001 From: Sebastian Herbszt Date: Sat, 23 Apr 2011 12:18:21 +0200 Subject: [PATCH] thread: free curr->rmstack Free curr->rmstack instead of double free of curr->stack. Signed-off-by: Sebastian Herbszt Signed-off-by: H. Peter Anvin --- core/thread/exit_thread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.7.4