diff --git a/src/libxl/libxl_migration.c b/src/libxl/libxl_migration.c index 8be78772f2..f1da251c91 100644 --- a/src/libxl/libxl_migration.c +++ b/src/libxl/libxl_migration.c @@ -296,7 +296,7 @@ libxlDoMigrateReceive(void *opaque) libxlDomainObjEndJob(driver, vm); cleanup: - if (remove_dom && vm) { + if (remove_dom) { virDomainObjListRemove(driver->domains, vm); vm = NULL; }