mirror of
https://github.com/SELinuxProject/selinux
synced 2025-02-09 14:17:31 +00:00
policycoreutils: free memory of allocated context in newrole
Found by scan-build. Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
This commit is contained in:
parent
f0c354afc0
commit
32611aea65
@ -1239,6 +1239,7 @@ int main(int argc, char *argv[])
|
||||
free(pw.pw_dir);
|
||||
free(pw.pw_shell);
|
||||
free(shell_argv0);
|
||||
free(new_context);
|
||||
return exit_code;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user