Message ID | 1531901741-8382-1-git-send-email-lidongchen@tencent.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/migration/migration.c b/migration/migration.c index 8d56d56930..37048d9dad 100644 --- a/migration/migration.c +++ b/migration/migration.c @@ -161,6 +161,12 @@ void migration_object_init(void) void migration_object_finalize(void) { object_unref(OBJECT(current_migration)); + + qemu_sem_destroy(¤t_incoming->postcopy_pause_sem_fault); + qemu_sem_destroy(¤t_incoming->postcopy_pause_sem_dst); + qemu_event_destroy(¤t_incoming->main_thread_load_event); + qemu_mutex_destroy(¤t_incoming->rp_mutex); + g_free(current_incoming); } /* For outgoing */
Qemu initialize the MigrationIncomingState structure in migration_object_init, but not release it. this patch release it in migration_object_finalize. Signed-off-by: Lidong Chen <lidongchen@tencent.com> --- migration/migration.c | 6 ++++++ 1 file changed, 6 insertions(+)