[libvirt] [PATCH 2/5] util: file: Use g_autofree in virFindFileInPath

Ján Tomko jtomko at redhat.com
Thu Nov 14 11:48:00 UTC 2019


On Thu, Nov 14, 2019 at 11:43:30AM +0100, Peter Krempa wrote:
>Simplify the final lookup loop by freeing memory automatically and thus
>being able to directly return the result.
>
>Signed-off-by: Peter Krempa <pkrempa at redhat.com>
>---
> src/util/virfile.c | 11 ++++-------
> 1 file changed, 4 insertions(+), 7 deletions(-)
>

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

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/20191114/54ac84db/attachment-0001.sig>


More information about the libvir-list mailing list