From: "Daniel P. Berrange" <berra...@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 <berra...@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

_______________________________________________
Spice-devel mailing list
Spice-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/spice-devel

Reply via email to