mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-28 19:41:16 +00:00
virCHDriverConfig: Drop @uri member
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@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
b4701fe648
commit
51ff124d9c
@ -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;
|
||||
|
@ -35,7 +35,6 @@ struct _virCHDriverConfig {
|
||||
|
||||
char *stateDir;
|
||||
char *logDir;
|
||||
char *uri;
|
||||
|
||||
uid_t user;
|
||||
gid_t group;
|
||||
|
Loading…
Reference in New Issue
Block a user