[libvirt PATCH 0/9] ch: use g_auto where possible

Douglas, William william.douglas at intel.com
Wed Sep 22 21:36:41 UTC 2021


On Wed, 2021-09-22 at 22:55 +0200, Ján Tomko wrote:
> While cleaning up the tests, I noticed that the 'ch' driver is
> not using g_auto up to its full potential.
> 
> Use automatic cleanup where possible and remove redundant labels.
> 
> Ján Tomko (9):
>   ch: use g_auto in virCHMonitorBuildCPUJson
>   ch: use g_auto in virCHMonitorBuildKernelRelatedJson
>   ch: use g_auto in virCHMonitorBuildMemoryJson
>   ch: use g_auto in virCHMonitorBuildDiskJson
>   ch: use g_auto in virCHMonitorBuildDisksJson
>   ch: use g_auto in virCHMonitorBuildNetJson
>   ch: use g_auto in virCHMonitorBuildNetsJson
>   ch: use g_auto in virCHMonitorBuildVMJson
>   ch: use g_auto in virCHMonitorNew
> 
>  src/ch/ch_monitor.c | 167 +++++++++++++++++-------------------------
> --
>  1 file changed, 63 insertions(+), 104 deletions(-)
> 

Nice cleanup +1 for the patchset from me, thanks!




More information about the libvir-list mailing list