aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorLuMingYin <[email protected]>2024-04-27 08:23:47 +0100
committerMasami Hiramatsu (Google) <[email protected]>2024-04-29 22:30:46 +0900
commitdce3696271af7765f04428ec31b1b87dc7d016c6 (patch)
treeba4d2bcf1bf329a130b8a0338048723d5d4312c5 /tools/perf/scripts/python/export-to-postgresql.py
parente67572cd2204894179d89bd7b984072f19313b03 (diff)
tracing/probes: Fix memory leak in traceprobe_parse_probe_arg_body()
If traceprobe_parse_probe_arg_body() failed to allocate 'parg->fmt', it jumps to the label 'out' instead of 'fail' by mistake.In the result, the buffer 'tmp' is not freed in this case and leaks its memory. Thus jump to the label 'fail' in that error case. Link: https://lore.kernel.org/all/[email protected]/ Fixes: 032330abd08b ("tracing/probes: Cleanup probe argument parser") Signed-off-by: LuMingYin <[email protected]> Acked-by: Masami Hiramatsu (Google) <[email protected]> Signed-off-by: Masami Hiramatsu (Google) <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions