migration: Properly destroy variables on incoming side
commitc02039a6f3730ddcf683a0ba9a175688c6db71a0
authorPeter Xu <peterx@redhat.com>
Tue, 8 Sep 2020 20:30:17 +0000 (8 16:30 -0400)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Fri, 25 Sep 2020 10:11:01 +0000 (25 11:11 +0100)
tree6e35e75861b5e76135f317cfce6032d5696eb208
parent8c1c07929feae876202ba26f07a540c5115c18cd
migration: Properly destroy variables on incoming side

In migration_incoming_state_destroy(), we've got a few variables that aren't
destroyed properly, namely:

    main_thread_load_event
    postcopy_pause_sem_dst
    postcopy_pause_sem_fault
    rp_mutex

Destroy them properly.

Signed-off-by: Peter Xu <peterx@redhat.com>
Message-Id: <20200908203022.341615-2-peterx@redhat.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
migration/migration.c