[libvirt] [PATCH] nodedev: use autofree for more local variables

Erik Skultety eskultet at redhat.com
Thu Jan 23 09:04:52 UTC 2020

On Fri, Jan 10, 2020 at 03:51:07PM -0600, Jonathon Jongsma wrote:
> Simplify function logic by using g_autofree to free local variables so
> that we can remove some goto statements that are used for cleanup.
> Introduce a g_autoptr cleanup function for virNodeDeviceDef.
> Signed-off-by: Jonathon Jongsma <jjongsma at redhat.com>
Reviewed-by: Erik Skultety <eskultet at redhat.com>

More information about the libvir-list mailing list