disp_con() leaks scon_trans if it returns early. Signed-off-by: Nicolas Iooss <nicolas.iooss@xxxxxxx> --- policycoreutils/secon/secon.c | 1 + 1 file changed, 1 insertion(+) diff --git a/policycoreutils/secon/secon.c b/policycoreutils/secon/secon.c index 6078139422ab..477057a6896b 100644 --- a/policycoreutils/secon/secon.c +++ b/policycoreutils/secon/secon.c @@ -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; } -- 2.17.1 _______________________________________________ Selinux mailing list Selinux@xxxxxxxxxxxxx To unsubscribe, send email to Selinux-leave@xxxxxxxxxxxxx. To get help, send an email containing "help" to Selinux-request@xxxxxxxxxxxxx.