[PATCH 01/21] util: xml: Add autoptr cleanup for virXMLValidator

Peter Krempa pkrempa at redhat.com
Thu Oct 8 07:55:15 UTC 2020


Signed-off-by: Peter Krempa <pkrempa at redhat.com>
---
 src/util/virxml.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/util/virxml.h b/src/util/virxml.h
index fd0d30fcec..b73591c3df 100644
--- a/src/util/virxml.h
+++ b/src/util/virxml.h
@@ -220,6 +220,7 @@ virXMLValidateNodeAgainstSchema(const char *schemafile,

 void
 virXMLValidatorFree(virXMLValidatorPtr validator);
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(virXMLValidator, virXMLValidatorFree);

 void
 virXMLFormatElement(virBufferPtr buf,
-- 
2.26.2




More information about the libvir-list mailing list