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
1 changed files with 1 additions and 0 deletions
|
@ -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 a new issue