[PATCH v2 0/6] use g_autofree and g_autoptr

Ján Tomko jtomko at redhat.com
Thu Mar 4 16:34:29 UTC 2021


On a Wednesday in 2021, Kristina Hanicova wrote:
>This is v2 from
>https://listman.redhat.com/archives/libvir-list/2021-February/msg01117.html
>
>I split commit 3/4 into more commits and left out autofreeing outer
>array as suggested by Jan Tomko.
>Patches 2/6 and 6/6 (previously 2/4 and 4/4) have already been
>reviewed-by and I am sending them for completness.
>
>This uses g_autofree (if possible) in files: vsh-table,
>     netdev_bandwidth_conf and g_autoptr instead of
>     virNetDevBandwidthFree where possible.
>
>
>Kristina Hanicova (6):
>  vsh-table: Use g_autofree where possible
>  netdev_bandwidth_conf: Use g_autofree where possible
>  netdev_bandwidth_conf: Refractor virNetDevBandwidthParse()
>  Use g_steal_pointer 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                | 13 ++-----
> 7 files changed, 39 insertions(+), 66 deletions(-)
>

Reviewed-by: Ján Tomko <jtomko at redhat.com>

and pushed.

Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20210304/fd481acb/attachment-0001.sig>


More information about the libvir-list mailing list