[PATCH 0/4] use g_autofree and g_autoptr

Kristina Hanicova posted 4 patches 3 years, 2 months ago
Test syntax-check failed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/cover.1614085265.git.khanicov@redhat.com
There is a newer version of this series
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(-)
[PATCH 0/4] use g_autofree and g_autoptr
Posted by Kristina Hanicova 3 years, 2 months ago
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