]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: xml: Always consume args of virXMLFormatElement
authorPeter Krempa <pkrempa@redhat.com>
Fri, 30 Nov 2018 11:26:30 +0000 (12:26 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 5 Dec 2018 16:53:26 +0000 (17:53 +0100)
commitb0ae508344062380e22f5f9306bf221ff38fc510
tree1e1641646751dcab1b619471879e7ecd23057e33
parent0ba4da58713a9341c0ab364f2d27837e1e984a95
util: xml: Always consume args of virXMLFormatElement

The function clears and frees the passed buffers on success, but not in
one case of failure. Modify the control flow that the args are always
consumed, record it in the docs and remove few pointless cleanup paths
in callers.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/conf/domain_conf.c
src/qemu/qemu_domain.c
src/util/virxml.c