mirror of https://gitee.com/openkylin/libvirt.git
conf: remove duplicate call to VIR_FREE(info->alias)
There is another identical call 4 lines up in the same function.
This commit is contained in:
parent
484a0bab39
commit
aaa6210f81
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue