mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-14 22:34:41 +00:00
Fix the memory leak in cgfsng_attach
Signed-off-by: LiFeng <lifeng68@huawei.com>
This commit is contained in:
parent
d31660efe7
commit
71cb9afb44
@ -2493,6 +2493,7 @@ static bool cgfsng_attach(const char *name, const char *lxcpath, pid_t pid)
|
||||
continue;
|
||||
|
||||
fullpath = build_full_cgpath_from_monitorpath(h, path, "cgroup.procs");
|
||||
free(path);
|
||||
ret = lxc_write_to_file(fullpath, pidstr, len, false);
|
||||
if (ret < 0) {
|
||||
SYSERROR("Failed to attach %d to %s", (int)pid, fullpath);
|
||||
|
Loading…
Reference in New Issue
Block a user