Fix memory leak introduced by commit 501bfad1

501bfad1 missed freeing priv->saveDir when opening the Xen unified
driver failed.
This commit is contained in:
Jim Fehlig 2012-12-04 10:39:07 -07:00
parent 501bfad194
commit cab0cfd5cf
1 changed files with 1 additions and 0 deletions

View File

@ -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;