[PATCH 0/4] use g_autofree and g_autoptr

Kristina Hanicova khanicov at redhat.com
Tue Feb 23 13:04:44 UTC 2021


This uses g_autofree (if possible) in files: vsh-table,
     netdev_bandwidth_conf and g_autoptr instead of
     virNetDevBandwidthFree where possible.

Kristina Hanicova (4):
  vsh-table: Use g_autofree where possible
  netdev_bandwidth_conf: Use g_autofree where possible
  Use g_autoptr instead of virNetDevBandwidthFree where possible
  netdev_bandwidth_conf: Remove redundant variables/labels

 src/conf/netdev_bandwidth_conf.c | 67 ++++++++++++--------------------
 src/network/bridge_driver.c      |  6 +--
 src/qemu/qemu_driver.c           | 11 ++----
 src/test/test_driver.c           |  3 +-
 src/util/virnetdevbandwidth.h    |  2 +
 tests/virnetdevbandwidthtest.c   |  3 +-
 tools/vsh-table.c                | 16 +++-----
 7 files changed, 40 insertions(+), 68 deletions(-)

-- 
2.29.2




More information about the libvir-list mailing list