mirror of
https://github.com/SELinuxProject/selinux
synced 2024-12-23 22:42:06 +00:00
policycoreutils/secon: free scon_trans before returning
disp_con() leaks scon_trans if it returns early. Signed-off-by: Nicolas Iooss <nicolas.iooss@m4x.org>
This commit is contained in:
parent
0ed08c8ffe
commit
b614069e66
@ -646,6 +646,7 @@ static void disp_con(security_context_t scon_raw)
|
||||
disp__con_val("clearance", NULL, &color);
|
||||
if (opts->disp_mlsr)
|
||||
disp__con_val("mls-range", NULL, &color);
|
||||
freecon(scon_trans);
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user