mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
virnetdev: Need to initialize 'pciConfigAddr'
It was possible to call VIR_FREE in cleanup prior to initialization
This commit is contained in:
parent
ff4eac595f
commit
ac5cb26a32
@ -986,7 +986,7 @@ virNetDevGetVirtualFunctions(const char *pfname,
|
|||||||
int ret = -1, i;
|
int ret = -1, i;
|
||||||
char *pf_sysfs_device_link = NULL;
|
char *pf_sysfs_device_link = NULL;
|
||||||
char *pci_sysfs_device_link = NULL;
|
char *pci_sysfs_device_link = NULL;
|
||||||
char *pciConfigAddr;
|
char *pciConfigAddr = NULL;
|
||||||
|
|
||||||
if (virNetDevSysfsFile(&pf_sysfs_device_link, pfname, "device") < 0)
|
if (virNetDevSysfsFile(&pf_sysfs_device_link, pfname, "device") < 0)
|
||||||
return ret;
|
return ret;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user