mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-07-13 20:45:30 +00:00
cgmanager: free line at end of check_supports_multiple_controllers
This is only called at startup so it wasn't a big leak, but it is a leak. Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com> Acked-by: Stéphane Graber <stgraber@ubuntu.com>
This commit is contained in:
parent
89a4ec737e
commit
7b7d76e00b
@ -246,11 +246,12 @@ static void check_supports_multiple_controllers(pid_t pid)
|
|||||||
}
|
}
|
||||||
if (strcmp(prevpath, colon) != 0) {
|
if (strcmp(prevpath, colon) != 0) {
|
||||||
cgm_all_controllers_same = false;
|
cgm_all_controllers_same = false;
|
||||||
fclose(f);
|
break;
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fclose(f);
|
fclose(f);
|
||||||
|
free(line);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int send_creds(int sock, int rpid, int ruid, int rgid)
|
static int send_creds(int sock, int rpid, int ruid, int rgid)
|
||||||
|
Loading…
Reference in New Issue
Block a user