]> xenbits.xensource.com Git - libvirt.git/commit
virSecretLoadAllConfigs: Use g_autofree for @path
authorMichal Privoznik <mprivozn@redhat.com>
Mon, 16 Oct 2023 07:49:02 +0000 (09:49 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 17 Oct 2023 06:32:22 +0000 (08:32 +0200)
commit7cb31974ec33a1be3ae6d9765f4b2629d9b4d2c2
tree5d381a421c9e564fdf46af1e49f714239db572f8
parent28602827e97b741b466726050510e00539a67191
virSecretLoadAllConfigs: Use g_autofree for @path

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@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/conf/virsecretobj.c