[libvirt] [PATCH 15/23] conf: Simplify lifecycle of temp buffers in virDomainDefFormatFeatures

Ján Tomko jtomko at redhat.com
Wed Mar 6 11:50:15 UTC 2019


On Wed, Mar 06, 2019 at 09:20:40AM +0100, Peter Krempa wrote:
>Use VIR_AUTOCLEAN to avoid leaking the buffer on error path and get rid
>of resetting mid loop since virXMLFormatElement does the reset
>internally.
>
>Signed-off-by: Peter Krempa <pkrempa at redhat.com>
>---
> src/conf/domain_conf.c | 23 ++++++-----------------
> 1 file changed, 6 insertions(+), 17 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/20190306/92c746c6/attachment-0001.sig>


More information about the libvir-list mailing list