]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu_monitor_json: Use g_autofree
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 21 Oct 2021 08:21:24 +0000 (10:21 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 25 Oct 2021 11:42:47 +0000 (13:42 +0200)
commita8ab1dd4cbaae621296dabcb921bbea502dcb59c
treec6099a0502878abdac2c2feccb76b8d148b2a695
parent551f91b4cb0e9fe4bfb853a72a83e3bfab6bfbb3
qemu_monitor_json: Use g_autofree

Let's replace VIR_FREE() calls with g_autofree. Not all calls can
be replaced though - the legitimate ones are kept (e.g. those
which free array, or which free a struct for which we don't have
g_autoptr() yet, and so on).

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Tim Wiederhake <twiederh@redhat.com>
src/qemu/qemu_monitor_json.c