[PATCH 3/4] virSecretLoadAllConfigs: Use g_autofree for @path

Peter Krempa pkrempa at redhat.com
Mon Oct 16 13:05:45 UTC 2023


On Mon, Oct 16, 2023 at 10:07:50 +0200, Michal Privoznik wrote:
> When loading virSecret configs, the @path variable holds path to
> individual config files. In each iteration it is freed explicitly
> using VIR_FREE(). Switch it to g_autofree and remove those
> explicit calls.
> 
> Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
> ---
>  src/conf/virsecretobj.c | 4 +---
>  1 file changed, 1 insertion(+), 3 deletions(-)

Reviewed-by: Peter Krempa <pkrempa at redhat.com>


More information about the libvir-list mailing list