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

Peter Krempa posted 21 patches 5 years, 4 months ago
There is a newer version of this series
[PATCH 01/21] util: xml: Add autoptr cleanup for virXMLValidator
Posted by Peter Krempa 5 years, 4 months ago
Signed-off-by: Peter Krempa <pkrempa@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

Re: [PATCH 01/21] util: xml: Add autoptr cleanup for virXMLValidator
Posted by Ján Tomko 5 years, 4 months ago
On a Thursday in 2020, Peter Krempa wrote:
>Signed-off-by: Peter Krempa <pkrempa@redhat.com>
>---
> src/util/virxml.h | 1 +
> 1 file changed, 1 insertion(+)
>

Reviewed-by: Ján Tomko <jtomko@redhat.com>

Jano