[PATCH v3 2/7] lib: Prefer g_autoptr(dnsmasqCaps) instead of explicit unref
Andrea Bolognani
abologna at redhat.com
Fri Jan 14 14:47:20 UTC 2022
On Wed, Jan 12, 2022 at 09:47:53AM +0100, Michal Privoznik wrote:
> The dnsmasqCaps type has its own cleanup function defined and
> ready to use via g_autoptr(). Use automatic cleanup instead of
> an explicit one.
>
> Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
> ---
> src/util/virdnsmasq.c | 18 ++++++++----------
> tests/networkxml2conftest.c | 7 +++----
> 2 files changed, 11 insertions(+), 14 deletions(-)
Reviewed-by: Andrea Bolognani <abologna at redhat.com>
--
Andrea Bolognani / Red Hat / Virtualization
More information about the libvir-list
mailing list