]> xenbits.xensource.com Git - libvirt.git/commit
qemu_driver.c: use g_autofree when possible
authorDaniel Henrique Barboza <danielhb413@gmail.com>
Wed, 16 Oct 2019 20:54:31 +0000 (17:54 -0300)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 17 Oct 2019 11:56:46 +0000 (13:56 +0200)
commit0108deb944af5ca6f1da350c9d0352c8ed18738b
tree0da837f16e1d8e05f5f9679ab2fb409d4714c40a
parentc00d13450f7674f5edb69d16c04424b2247b1071
qemu_driver.c: use g_autofree when possible

String and other scalar pointers an be auto-unref, sparing us
a VIR_FREE() call.

This patch uses g_autofree whenever possible with strings and
other scalar pointer types.

Suggested-by: Erik Skultety <eskultet@redhat.com>
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_driver.c