提交 685753a3 编写于 作者: M Markus Groß 提交者: Daniel Veillard

Fix libxl vm def handling on domU cleanup

* src/libxl/libxl_driver.c: in libxlVmCleanup, free up the
  newDef definition if present overwise it would be leaked.
上级 f59b71ac
......@@ -276,6 +276,13 @@ libxlVmCleanup(libxlDriverPrivatePtr driver,
VIR_DEBUG("Failed to remove domain XML for %s", vm->def->name);
VIR_FREE(file);
}
if (vm->newDef) {
virDomainDefFree(vm->def);
vm->def = vm->newDef;
vm->def->id = -1;
vm->newDef = NULL;
}
}
/*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册