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!