diff options
| author | Tomas Bortoli <[email protected]> | 2019-05-28 15:43:38 +0000 |
|---|---|---|
| committer | Steven Rostedt (VMware) <[email protected]> | 2019-05-28 20:27:58 +0000 |
| commit | dfb4a6f2191a80c8b790117d0ff592fd712d3296 (patch) | |
| tree | ee5899455d1b43d2736e59c88e355ec4f1c08172 /lib/timerqueue.c | |
| parent | tracing: Silence GCC 9 array bounds warning (diff) | |
| download | kernel-dfb4a6f2191a80c8b790117d0ff592fd712d3296.tar.gz kernel-dfb4a6f2191a80c8b790117d0ff592fd712d3296.zip | |
tracing: Avoid memory leak in predicate_parse()
In case of errors, predicate_parse() goes to the out_free label
to free memory and to return an error code.
However, predicate_parse() does not free the predicates of the
temporary prog_stack array, thence leaking them.
Link: http://lkml.kernel.org/r/[email protected]
Cc: [email protected]
Fixes: 80765597bc587 ("tracing: Rewrite filter logic to be simpler and faster")
Reported-by: [email protected]
Signed-off-by: Tomas Bortoli <[email protected]>
[ Added protection around freeing prog_stack[i].pred ]
Signed-off-by: Steven Rostedt (VMware) <[email protected]>
Diffstat (limited to 'lib/timerqueue.c')
0 files changed, 0 insertions, 0 deletions
