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])
|
||||
drivers[i]->xenClose(conn);
|
||||
virMutexDestroy(&priv->lock);
|
||||
VIR_FREE(priv->saveDir);
|
||||
VIR_FREE(priv);
|
||||
conn->privateData = NULL;
|
||||
return ret;
|
||||
|
Loading…
x
Reference in New Issue
Block a user