mirror of https://gitee.com/openkylin/libvirt.git
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…
Reference in New Issue