[gtk-vnc] Free coroutine stack when releasing coroutine
- From: Daniel P. Berrange <dberrange src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-vnc] Free coroutine stack when releasing coroutine
- Date: Mon, 16 Sep 2013 10:48:31 +0000 (UTC)
commit 49fbd957cb686ff3f9c31923ff17a9529edd9c13
Author: Daniel P. Berrange <berrange redhat com>
Date: Fri Sep 13 12:06:57 2013 +0100
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>
src/coroutine_ucontext.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/coroutine_ucontext.c b/src/coroutine_ucontext.c
index 848016e..8fe650e 100644
--- a/src/coroutine_ucontext.c
+++ b/src/coroutine_ucontext.c
@@ -42,6 +42,8 @@ static int _coroutine_release(struct continuation *cc)
return ret;
}
+ munmap(co->cc.stack, co->cc.stack_size);
+
co->caller = NULL;
return 0;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]