From: Michal Privoznik Date: Fri, 8 Feb 2013 14:25:03 +0000 (+0100) Subject: network_conf.c: Free xmlDoc after use X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=a6cfed260b9ff3777badb22d11a6ce3b8cb2601f;p=libvirt.git network_conf.c: Free xmlDoc after use The virNetworkObjUpdateParseFile() function was not freeing the xml variable, leaving us with a memory leak. --- diff --git a/src/conf/network_conf.c b/src/conf/network_conf.c index c93916dd1d..3604ff7d59 100644 --- a/src/conf/network_conf.c +++ b/src/conf/network_conf.c @@ -1895,6 +1895,7 @@ virNetworkObjUpdateParseFile(const char *filename, ret = 0; cleanup: + xmlFreeDoc(xml); xmlXPathFreeContext(ctxt); return ret; }