It's used only inside the if condition.
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
int controllers,
virCgroupPtr *group)
{
- g_autofree char *parentPath = NULL;
g_autofree char *newPath = NULL;
g_autoptr(virCgroup) parent = NULL;
g_autoptr(virCgroup) newGroup = NULL;
if (STRNEQ(newPath, "/")) {
char *tmp;
- parentPath = g_strdup(newPath);
+ g_autofree char *parentPath = g_strdup(newPath);
tmp = strrchr(parentPath, '/');
tmp++;