mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
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:
@@ -1895,6 +1895,7 @@ virNetworkObjUpdateParseFile(const char *filename,
|
|||||||
ret = 0;
|
ret = 0;
|
||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
|
xmlFreeDoc(xml);
|
||||||
xmlXPathFreeContext(ctxt);
|
xmlXPathFreeContext(ctxt);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user