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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 these variables.

A combination of using separate variables and/or reducing the scope
of some of them by putting them into the loops where they're used
or separate functions will be needed to satisfy that requirement.

Jano

Signed-off-by: Daniel Henrique Barboza <danielhb413@xxxxxxxxx>
---
src/qemu/qemu_capabilities.c | 66 ++++++++++++++++--------------------
1 file changed, 30 insertions(+), 36 deletions(-)

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux