network_conf.c: Free xmlDoc after use

The virNetworkObjUpdateParseFile() function was not freeing the xml
variable, leaving us with a memory leak.
This commit is contained in:
Michal Privoznik 2013-02-08 15:25:03 +01:00
parent e06816289c
commit a6cfed260b

View File

@ -1895,6 +1895,7 @@ virNetworkObjUpdateParseFile(const char *filename,
ret = 0;
cleanup:
xmlFreeDoc(xml);
xmlXPathFreeContext(ctxt);
return ret;
}