mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
Fix memory leak introduced by commit 501bfad1
501bfad1 missed freeing priv->saveDir when opening the Xen unified driver failed.
This commit is contained in:
parent
501bfad194
commit
cab0cfd5cf
@ -432,6 +432,7 @@ clean:
|
|||||||
if (priv->opened[i])
|
if (priv->opened[i])
|
||||||
drivers[i]->xenClose(conn);
|
drivers[i]->xenClose(conn);
|
||||||
virMutexDestroy(&priv->lock);
|
virMutexDestroy(&priv->lock);
|
||||||
|
VIR_FREE(priv->saveDir);
|
||||||
VIR_FREE(priv);
|
VIR_FREE(priv);
|
||||||
conn->privateData = NULL;
|
conn->privateData = NULL;
|
||||||
return ret;
|
return ret;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user