mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-14 09:47:06 +00:00
coverity: #1438392
Dereference before null check Signed-off-by: 2xsec <dh48.jeong@samsung.com>
This commit is contained in:
parent
df05fa0f04
commit
6926e3b80e
@ -1897,8 +1897,7 @@ static bool cg_filter_and_set_cpus(char *path, bool am_initialized)
|
||||
copy_parent:
|
||||
*lastslash = oldv;
|
||||
|
||||
if (fpath)
|
||||
free(fpath);
|
||||
free(fpath);
|
||||
|
||||
fpath = must_make_path(path, "cpuset.cpus", NULL);
|
||||
ret = write_to_file(fpath, cpulist, strlen(cpulist), false);
|
||||
|
Loading…
Reference in New Issue
Block a user