libvirt/src/interface
Michal Privoznik b72419f387 lib: Introduce and use g_autoptr() for virInterfaceDef
There are a lot of places where we call virInterfaceDefFree()
explicitly. We can define autoptr cleanup macro and annotate
declarations with g_autoptr() and remove plenty of those explicit
free calls.

This also fixes a memory leak in udevInterfaceGetXMLDesc() which
called virInterfaceDefFree() only in successful path.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Tim Wiederhake <twiederh@redhat.com>
2021-11-02 10:52:18 +01:00
..
interface_backend_netcf.c lib: Introduce and use g_autoptr() for virInterfaceDef 2021-11-02 10:52:18 +01:00
interface_backend_udev.c lib: Introduce and use g_autoptr() for virInterfaceDef 2021-11-02 10:52:18 +01:00
interface_driver.c Use K&R style for curly braces in remaining files 2014-03-20 17:27:17 +01:00
interface_driver.h src/interface: use #pragma once in headers 2019-06-13 17:05:09 +02:00
meson.build build: Remove unused 'conflicts' key from virt_daemon_unit 2021-02-10 09:30:41 -07:00
virtinterfaced.init.in configure: Provide OpenRC scripts for sub-daemons 2019-12-16 10:11:22 +01:00
virtinterfaced.service.in systemd: Move timeout from service files to sysconf files 2020-04-03 11:50:50 +02:00
virtinterfaced.sysconf systemd: Move timeout from service files to sysconf files 2020-04-03 11:50:50 +02:00