migration: cleanup in error paths in loadvm
commit096c83b7219c5a2145435afc8be750281e9cb447
authorDr. David Alan Gilbert <dgilbert@redhat.com>
Fri, 14 Sep 2018 17:04:30 +0000 (14 18:04 +0100)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Wed, 26 Sep 2018 16:29:01 +0000 (26 17:29 +0100)
treec6a527affab8aa251278b3638d92221f38724229
parent9cf4bb8730c669c40550e635a9e2b8ee4f1664ca
migration: cleanup in error paths in loadvm

There's a couple of error paths in qemu_loadvm_state
which happen early on but after we've initialised the
load state; that needs to be cleaned up otherwise
we can hit asserts if the state gets reinitialised later.

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