projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f9ee9f9
)
Set xbzrle buffers to NULL after freeing them to avoid double free errors
author
Orit Wasserman
<owasserm@redhat.com>
Thu, 30 Jan 2014 18:08:33 +0000
(20:08 +0200)
committer
Juan Quintela
<quintela@redhat.com>
Tue, 4 Feb 2014 15:48:49 +0000
(16:48 +0100)
Signed-off-by: Orit Wasserman <owasserm@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
arch_init.c
patch
|
blob
|
history
diff --git
a/arch_init.c
b/arch_init.c
index 77912e7a7dbf789b557288998d398f007fa429c0..66f5e822638ac813ca149ea19ff619f76af50c08 100644
(file)
--- 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;
}
}