[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [libvirt] [PATCH libvirt-glib 08/15] Remove useless if before xmlFreeDoc



ACK
On Thu, Dec 01, 2011 at 02:05:36PM +0000, Daniel P. Berrange wrote:
> From: "Daniel P. Berrange" <berrange 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
> 
> --
> libvir-list mailing list
> libvir-list redhat com
> https://www.redhat.com/mailman/listinfo/libvir-list

Attachment: pgp5SlDMuUsf2.pgp
Description: PGP signature


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]