提交 aaa6210f 编写于 作者: L Laine Stump

conf: remove duplicate call to VIR_FREE(info->alias)

There is another identical call 4 lines up in the same function.
上级 484a0bab
......@@ -1808,7 +1808,6 @@ void virDomainDeviceInfoClear(virDomainDeviceInfoPtr info)
if (info->type == VIR_DOMAIN_DEVICE_ADDRESS_TYPE_USB) {
VIR_FREE(info->addr.usb.port);
}
VIR_FREE(info->alias);
memset(&info->addr, 0, sizeof(info->addr));
info->type = VIR_DOMAIN_DEVICE_ADDRESS_TYPE_NONE;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册