From cab0cfd5cfa9c2d2dfa9e04d586211f4db61ae32 Mon Sep 17 00:00:00 2001 From: Jim Fehlig Date: Tue, 4 Dec 2012 10:39:07 -0700 Subject: [PATCH] Fix memory leak introduced by commit 501bfad1 501bfad1 missed freeing priv->saveDir when opening the Xen unified driver failed. --- src/xen/xen_driver.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/xen/xen_driver.c b/src/xen/xen_driver.c index 3786176db1..d2de141863 100644 --- a/src/xen/xen_driver.c +++ b/src/xen/xen_driver.c @@ -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; -- GitLab