summaryrefslogtreecommitdiffstats
path: root/migration/migration.c
diff options
context:
space:
mode:
authorJuan Quintela2017-05-04 11:45:01 +0200
committerJuan Quintela2017-06-07 10:20:53 +0200
commit83c13382e43c4ce157ee26b6d0a6d1db801df78b (patch)
treec677ae9abeb0f10efd51788666ef909e6d361d9a /migration/migration.c
parentram: We only print throttling information sometimes (diff)
downloadqemu-83c13382e43c4ce157ee26b6d0a6d1db801df78b.tar.gz
qemu-83c13382e43c4ce157ee26b6d0a6d1db801df78b.tar.xz
qemu-83c13382e43c4ce157ee26b6d0a6d1db801df78b.zip
ram: Call migration_page_queue_free() at ram_migration_cleanup()
We shouldn't be using memory later than that. Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Reviewed-by: Peter Xu <peterx@redhat.com>
Diffstat (limited to 'migration/migration.c')
-rw-r--r--migration/migration.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/migration/migration.c b/migration/migration.c
index 9c5ff577b7..9cf47d389a 100644
--- a/migration/migration.c
+++ b/migration/migration.c
@@ -948,8 +948,6 @@ static void migrate_fd_cleanup(void *opaque)
qemu_bh_delete(s->cleanup_bh);
s->cleanup_bh = NULL;
- migration_page_queue_free();
-
if (s->to_dst_file) {
trace_migrate_fd_cleanup();
qemu_mutex_unlock_iothread();