diff options
author | Daniel P. Berrange <berrange@redhat.com> | 2013-09-13 13:30:18 +0100 |
---|---|---|
committer | Christophe Fergeau <cfergeau@redhat.com> | 2013-11-18 15:05:34 +0100 |
commit | acb9b6863fe4527ca2b8ba197c1f97b07aca0c5f (patch) | |
tree | 5ba5d313886d9db6afa81e570a41e21bd5b89c37 | |
parent | eb679f3138a1b1e0f6f00cc901333828bf1fd47e (diff) |
Free coroutine stack when releasing coroutine
The coroutine_init function mmap's a stack for the
ucontext coroutine, but nothing ever munmaps it.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
-rw-r--r-- | gtk/coroutine_ucontext.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/coroutine_ucontext.c b/gtk/coroutine_ucontext.c index 3663dfb..f4ff22e 100644 --- a/gtk/coroutine_ucontext.c +++ b/gtk/coroutine_ucontext.c @@ -50,6 +50,8 @@ static int _coroutine_release(struct continuation *cc) return ret; } + munmap(co->cc.stack, co->cc.stack_size); + co->caller = NULL; return 0; |