[Spice-devel] [PATCH] Free coroutine stack when releasing coroutine
Daniel P. Berrange
berrange at redhat.com
Fri Sep 13 05:30:18 PDT 2013
From: "Daniel P. Berrange" <berrange at redhat.com>
The coroutine_init function mmap's a stack for the
ucontext coroutine, but nothing ever munmaps it.
Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
---
gtk/coroutine_ucontext.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/gtk/coroutine_ucontext.c b/gtk/coroutine_ucontext.c
index 79e4afe..f65337e 100644
--- a/gtk/coroutine_ucontext.c
+++ b/gtk/coroutine_ucontext.c
@@ -48,6 +48,8 @@ static int _coroutine_release(struct continuation *cc)
return ret;
}
+ munmap(co->cc.stack, co->cc.stack_size);
+
co->caller = NULL;
return 0;
--
1.8.3.1
More information about the Spice-devel
mailing list