mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 07:17:44 +00:00
interface: Need to initialize 'ifaces_list'
It was possible to call VIR_FREE in cleanup prior to initialization
This commit is contained in:
parent
dd383b93ff
commit
8363dbaea3
@ -290,7 +290,7 @@ udevIfaceListAllInterfaces(virConnectPtr conn,
|
||||
struct udev_enumerate *enumerate = NULL;
|
||||
struct udev_list_entry *devices;
|
||||
struct udev_list_entry *dev_entry;
|
||||
virInterfacePtr *ifaces_list;
|
||||
virInterfacePtr *ifaces_list = NULL;
|
||||
virInterfacePtr iface_obj;
|
||||
int tmp_count;
|
||||
int count = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user