提交 bf69fd9b 编写于 作者: D Daniel P. Berrange

Fix memory leak in openvz driver

* src/openvz_driver.c: Remove unneccessary strdup() on hypervisor
  type api call
上级 7a4769bb
......@@ -1156,7 +1156,7 @@ static int openvzClose(virConnectPtr conn) {
}
static const char *openvzGetType(virConnectPtr conn ATTRIBUTE_UNUSED) {
return strdup("OpenVZ");
return "OpenVZ";
}
static char *openvzGetCapabilities(virConnectPtr conn) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册