[Spice-devel] [PATCH] Free coroutine stack when releasing coroutine
Marc-André Lureau
mlureau at redhat.com
Fri Sep 13 05:48:43 PDT 2013
ack
----- Original Message -----
> 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
>
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/spice-devel
>
More information about the Spice-devel
mailing list