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