]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virnetdev.c: Use g_auto*()
authorMichal Privoznik <mprivozn@redhat.com>
Sun, 19 Apr 2020 05:24:40 +0000 (07:24 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 20 Apr 2020 09:30:43 +0000 (11:30 +0200)
commit281f445b6f97cfb3e52d14b7f9833acc40443409
tree29ced2a13bdf059798e1a3388042217a9a54b36d
parent423664a6e9287905574d6c62ded36f273c2f09ac
virnetdev.c: Use g_auto*()

While I'm at it, use more g_autofree and g_autoptr() in this
file. This also fixes a possible mem-leak in
virNetDevGetVirtualFunctions().

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/util/virnetdev.c