From: John Ferlan Date: Tue, 22 Jan 2013 14:15:47 +0000 (-0500) Subject: interface: Need to initialize 'ifaces_list' X-Git-Tag: v1.0.2-rc1~38 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8363dbaea33ef5bbf3a9da8a8b07b0dc8de9b486;p=thirdparty%2Flibvirt.git interface: Need to initialize 'ifaces_list' It was possible to call VIR_FREE in cleanup prior to initialization --- diff --git a/src/interface/interface_backend_udev.c b/src/interface/interface_backend_udev.c index d2590434bd..92c35d9202 100644 --- a/src/interface/interface_backend_udev.c +++ b/src/interface/interface_backend_udev.c @@ -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;