mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-10-30 09:53:10 +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_enumerate *enumerate = NULL;
|
||||||
struct udev_list_entry *devices;
|
struct udev_list_entry *devices;
|
||||||
struct udev_list_entry *dev_entry;
|
struct udev_list_entry *dev_entry;
|
||||||
virInterfacePtr *ifaces_list;
|
virInterfacePtr *ifaces_list = NULL;
|
||||||
virInterfacePtr iface_obj;
|
virInterfacePtr iface_obj;
|
||||||
int tmp_count;
|
int tmp_count;
|
||||||
int count = 0;
|
int count = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user