Commit 96c5c6e6 authored by Navid Emamdoost's avatar Navid Emamdoost Committed by Steven Rostedt (VMware)
Browse files

tracing: Have error path in predicate_parse() free its allocated memory

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.


Signed-off-by: default avatarNavid Emamdoost <>
Signed-off-by: default avatarSteven Rostedt (VMware) <>
parent 968e5170
......@@ -452,8 +452,10 @@ predicate_parse(const char *str, int nr_parens, int nr_preds,
switch (*next) {
case '(': /* #2 */
if (top - op_stack > nr_parens)
return ERR_PTR(-EINVAL);
if (top - op_stack > nr_parens) {
ret = -EINVAL;
goto out_free;
*(++top) = invert;
case '!': /* #3 */
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment