mirror of
https://github.com/SELinuxProject/selinux
synced 2025-03-18 08:31:34 +00:00
Fix double free in newrole when it fails to exec.
Signed-off-by: Chad Sellers <csellers@tresys.com>
This commit is contained in:
parent
32cf5d539b
commit
3084b9a1f9
@ -1338,8 +1338,6 @@ int main(int argc, char *argv[])
|
||||
if (transition_to_caller_uid())
|
||||
goto err_close_pam_session;
|
||||
#endif
|
||||
freecon(old_context);
|
||||
freecon(new_context);
|
||||
|
||||
/* Handle environment changes */
|
||||
if (restore_environment(preserve_environment, old_environ, &pw)) {
|
||||
|
Loading…
Reference in New Issue
Block a user