It was possible to call VIR_FREE in cleanup prior to initialization --- src/util/virnetdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/virnetdev.c b/src/util/virnetdev.c index 7ffd3c2..295884f 100644 --- a/src/util/virnetdev.c +++ b/src/util/virnetdev.c @@ -986,7 +986,7 @@ virNetDevGetVirtualFunctions(const char *pfname, int ret = -1, i; char *pf_sysfs_device_link = NULL; char *pci_sysfs_device_link = NULL; - char *pciConfigAddr; + char *pciConfigAddr = NULL; if (virNetDevSysfsFile(&pf_sysfs_device_link, pfname, "device") < 0) return ret; -- 1.7.11.7 -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list