tracing: Have error path in predicate_parse() free its allocated memory
authorNavid Emamdoost <navid.emamdoost@gmail.com>
Fri, 20 Sep 2019 22:57:59 +0000 (17:57 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Aug 2020 08:05:59 +0000 (10:05 +0200)
commit7deb2dcb8963812742ed08420cfa4e23bbeda074
treef52bd28785c2c7d98e19d15bc78d071494186e35
parente15f8a9b0046418295d09db24c1ec306c80d013b
tracing: Have error path in predicate_parse() free its allocated memory

[ Upstream commit 96c5c6e6a5b6db592acae039fed54b5c8844cd35 ]

In predicate_parse, there is an error path that is not going to
out_free instead it returns directly which leads to a memory leak.

Link: http://lkml.kernel.org/r/20190920225800.3870-1-navid.emamdoost@gmail.com
Signed-off-by: Navid Emamdoost <navid.emamdoost@gmail.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
kernel/trace/trace_events_filter.c