[PATCH 2/2] virCHDriverConfig: Drop @uri member

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This member is unused (apart from only being set in
virCHDriverConfigNew()), and never freed really (leading to a
memleak).

Signed-off-by: Michal Privoznik <mprivozn@xxxxxxxxxx>
---
 src/ch/ch_conf.c | 1 -
 src/ch/ch_conf.h | 1 -
 2 files changed, 2 deletions(-)

diff --git a/src/ch/ch_conf.c b/src/ch/ch_conf.c
index 5f156dfe44..ed0fffe5d6 100644
--- a/src/ch/ch_conf.c
+++ b/src/ch/ch_conf.c
@@ -141,7 +141,6 @@ virCHDriverConfigNew(bool privileged)
     if (!(cfg = virObjectNew(virCHDriverConfigClass)))
         return NULL;
 
-    cfg->uri = g_strdup(privileged ? "ch:///system" : "ch:///session");
     if (privileged) {
         if (virGetUserID(CH_USER, &cfg->user) < 0)
             return NULL;
diff --git a/src/ch/ch_conf.h b/src/ch/ch_conf.h
index d856825377..37c36d9a09 100644
--- a/src/ch/ch_conf.h
+++ b/src/ch/ch_conf.h
@@ -35,7 +35,6 @@ struct _virCHDriverConfig {
 
     char *stateDir;
     char *logDir;
-    char *uri;
 
     uid_t user;
     gid_t group;
-- 
2.31.1




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux