Re: [PATCH 1/1] qemu_capabilities.c: modernize virQEMUCapsCacheLookupDefault

2020-06-23 Thread Ján Tomko
On a Monday in 2020, Daniel Henrique Barboza wrote: Use g_autoptr() in qemuCaps to get rid of a virObjectUnref call, a 'cleanup' label and the 'ret' pointer. Signed-off-by: Daniel Henrique Barboza --- Found this while reviewing a patch last week. src/qemu/qemu_capabilities.c | 21

[PATCH 1/1] qemu_capabilities.c: modernize virQEMUCapsCacheLookupDefault

2020-06-22 Thread Daniel Henrique Barboza
Use g_autoptr() in qemuCaps to get rid of a virObjectUnref call, a 'cleanup' label and the 'ret' pointer. Signed-off-by: Daniel Henrique Barboza --- Found this while reviewing a patch last week. src/qemu/qemu_capabilities.c | 21 - 1 file changed, 8 insertions(+), 13