mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 03:12:22 +00: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:
parent
e06816289c
commit
a6cfed260b
@ -1895,6 +1895,7 @@ virNetworkObjUpdateParseFile(const char *filename,
|
||||
ret = 0;
|
||||
|
||||
cleanup:
|
||||
xmlFreeDoc(xml);
|
||||
xmlXPathFreeContext(ctxt);
|
||||
return ret;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user