From: Orit Wasserman Date: Thu, 30 Jan 2014 18:08:33 +0000 (+0200) Subject: Set xbzrle buffers to NULL after freeing them to avoid double free errors X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=f6c6483b259a2395ee44cfa966f622e0f2dbe2ae;p=qemu.git Set xbzrle buffers to NULL after freeing them to avoid double free errors Signed-off-by: Orit Wasserman Reviewed-by: Juan Quintela Reviewed-by: Eric Blake Signed-off-by: Juan Quintela --- diff --git a/arch_init.c b/arch_init.c index 77912e7a7d..66f5e82263 100644 --- a/arch_init.c +++ b/arch_init.c @@ -617,6 +617,9 @@ static void migration_end(void) g_free(XBZRLE.current_buf); g_free(XBZRLE.decoded_buf); XBZRLE.cache = NULL; + XBZRLE.encoded_buf = NULL; + XBZRLE.current_buf = NULL; + XBZRLE.decoded_buf = NULL; } }