From: "Daniel P. Berrange" <berrange(a)redhat.com>
---
libvirt-gconfig/libvirt-gconfig-xml-doc.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/libvirt-gconfig/libvirt-gconfig-xml-doc.c
b/libvirt-gconfig/libvirt-gconfig-xml-doc.c
index 24d681b..fbb1a8b 100644
--- a/libvirt-gconfig/libvirt-gconfig-xml-doc.c
+++ b/libvirt-gconfig/libvirt-gconfig-xml-doc.c
@@ -83,8 +83,7 @@ static void gvir_config_xml_doc_finalize(GObject *object)
g_debug("Finalize GVirConfigXmlDoc=%p", doc);
- if (priv->doc)
- xmlFreeDoc(priv->doc);
+ xmlFreeDoc(priv->doc);
G_OBJECT_CLASS(gvir_config_xml_doc_parent_class)->finalize(object);
}
--
1.7.6.4