Re: [PATCH 1/7] qemu_capabilities.c: use g_autofree in virQEMUCapsLoadCache()

2021-11-18 Thread Ján Tomko
On a Thursday in 2021, Daniel Henrique Barboza wrote: Use autofree with 'str' and 'nodes' to get rid of the 'cleanup' label. The reason this function is not yet completely converted to g_auto is that we discourage mixing of manual and automatic freeing, which is what happens here with both of

[PATCH 1/7] qemu_capabilities.c: use g_autofree in virQEMUCapsLoadCache()

2021-11-18 Thread Daniel Henrique Barboza
Use autofree with 'str' and 'nodes' to get rid of the 'cleanup' label. Signed-off-by: Daniel Henrique Barboza --- src/qemu/qemu_capabilities.c | 66 1 file changed, 30 insertions(+), 36 deletions(-) diff --git a/src/qemu/qemu_capabilities.c b/src/qemu/qemu_c

[PATCH 1/7] qemu_capabilities.c: use g_autofree in virQEMUCapsLoadCache()

2021-11-18 Thread Daniel Henrique Barboza
Use autofree with 'str' and 'nodes' to get rid of the 'cleanup' label. Signed-off-by: Daniel Henrique Barboza --- src/qemu/qemu_capabilities.c | 66 1 file changed, 30 insertions(+), 36 deletions(-) diff --git a/src/qemu/qemu_capabilities.c b/src/qemu/qemu_c