Re: [PATCH v3 2/7] lib: Prefer g_autoptr(dnsmasqCaps) instead of explicit unref

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
> ---
>  src/util/virdnsmasq.c       | 18 ++++++++----------
>  tests/networkxml2conftest.c |  7 +++----
>  2 files changed, 11 insertions(+), 14 deletions(-)

Reviewed-by: Andrea Bolognani <abologna@xxxxxxxxxx>

-- 
Andrea Bolognani / Red Hat / Virtualization




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux