[Spice-devel] [PATCH v2 05/19] Do not leak mig_timer
Pavel Grunt
pgrunt at redhat.com
Wed Nov 30 12:27:34 UTC 2016
On Fri, 2016-11-25 at 14:52 +0000, Frediano Ziglio wrote:
> Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
Acked-by: Pavel Grunt <pgrunt at redhat.com>
> ---
> server/reds.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/server/reds.c b/server/reds.c
> index 1a812e4..bc0cc01 100644
> --- a/server/reds.c
> +++ b/server/reds.c
> @@ -3594,6 +3594,10 @@ SPICE_GNUC_VISIBLE void
> spice_server_destroy(SpiceServer *reds)
> }
> reds_cleanup(reds);
>
> + if (reds->mig_timer) {
> + reds_core_timer_remove(reds, reds->mig_timer);
> + }
> +
> /* remove the server from the list of servers so that we don't
> attempt to
> * free it again at exit */
> pthread_mutex_lock(&global_reds_lock);
More information about the Spice-devel
mailing list