Skip to content

Commit

Permalink
Merge pull request #2525 from 2xsec/bugfix
Browse files Browse the repository at this point in the history
coverity: #1438392
  • Loading branch information
brauner committed Aug 14, 2018
2 parents b61a67f + 6926e3b commit 375121e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/lxc/pam/pam_cgfs.c
Expand Up @@ -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);
Expand Down

0 comments on commit 375121e

Please sign in to comment.