mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-17 18:15:17 +00:00
b72419f387
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>