mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 14:15:28 +00:00
lxc: use g_auto in lxcContainerChild
Signed-off-by: Ján Tomko <jtomko@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
ee6b552aab
commit
fe9d5d6d00
@ -1927,7 +1927,7 @@ static int lxcContainerChild(void *data)
|
||||
int ret = -1;
|
||||
g_autofree char *ttyPath = NULL;
|
||||
virDomainFSDef *root;
|
||||
virCommand *cmd = NULL;
|
||||
g_autoptr(virCommand) cmd = NULL;
|
||||
int hasReboot;
|
||||
g_autofree gid_t *groups = NULL;
|
||||
int ngroups;
|
||||
@ -2075,7 +2075,6 @@ static int lxcContainerChild(void *data)
|
||||
virGetLastErrorMessage());
|
||||
}
|
||||
|
||||
virCommandFree(cmd);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user