aboutsummaryrefslogtreecommitdiff
path: root/migration/migration.c
diff options
context:
space:
mode:
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>2017-12-28 12:16:16 +0300
committerJuan Quintela <quintela@redhat.com>2018-01-15 12:48:05 +0100
commit1f8956041ad3851c28f0e3f6ee023d3bcc55ca50 (patch)
tree01f1049a16b998ac4008a2b853c2d658ddb86914 /migration/migration.c
parentbae416e5ba65701d3c5238164517158066d615e5 (diff)
downloadqemu-1f8956041ad3851c28f0e3f6ee023d3bcc55ca50.zip
qemu-1f8956041ad3851c28f0e3f6ee023d3bcc55ca50.tar.gz
qemu-1f8956041ad3851c28f0e3f6ee023d3bcc55ca50.tar.bz2
migration: finalize current_migration object
current_migration has .instance_finalize callback, but it is not called, because nobody unrefs current_migration. Fix that. Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> Reviewed-by: Peter Xu <peterx@redhat.com> Reviewed-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Juan Quintela <quintela@redhat.com>
Diffstat (limited to 'migration/migration.c')
-rw-r--r--migration/migration.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/migration/migration.c b/migration/migration.c
index 17cc219..7a77b19 100644
--- a/migration/migration.c
+++ b/migration/migration.c
@@ -132,6 +132,11 @@ void migration_object_init(void)
}
}
+void migration_object_finalize(void)
+{
+ object_unref(OBJECT(current_migration));
+}
+
/* For outgoing */
MigrationState *migrate_get_current(void)
{