mirror of
git://github.com/lxc/lxc
synced 2025-09-02 19:59:34 +00:00
coverity: #1438392
Dereference before null check Signed-off-by: 2xsec <dh48.jeong@samsung.com>
This commit is contained in:
@@ -1897,7 +1897,6 @@ static bool cg_filter_and_set_cpus(char *path, bool am_initialized)
|
|||||||
copy_parent:
|
copy_parent:
|
||||||
*lastslash = oldv;
|
*lastslash = oldv;
|
||||||
|
|
||||||
if (fpath)
|
|
||||||
free(fpath);
|
free(fpath);
|
||||||
|
|
||||||
fpath = must_make_path(path, "cpuset.cpus", NULL);
|
fpath = must_make_path(path, "cpuset.cpus", NULL);
|
||||||
|
Reference in New Issue
Block a user