[libvirt PATCH 4/6] Use g_strfeev instead of virStringFreeList
Daniel P. Berrangé
berrange at redhat.com
Mon Aug 3 09:17:46 UTC 2020
On Mon, Aug 03, 2020 at 12:25:32AM +0200, Ján Tomko wrote:
> Both accept a NULL value gracefully and virStringFreeList
> does not zero the pointer afterwards, so a straight replace
> is safe.
FWIW, if you use g_autoptr(GStrv) instead of char **, then you
can get auto-cleanup working where useful.
Regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
More information about the libvir-list
mailing list