Re: [PATCH v2] tracing/probes: Fix memory leak in traceprobe_parse_probe_arg_body

2024-04-27 Thread Markus Elfring
I suggest to append parentheses to the function name in the summary phrase. > If traceprobe_parse_probe_arg_body() fails to allocate 'parg->fmt', it > jumps to 'out' instead of 'fail' by mistake. In the result, in this > case the 'tmp' buffer is not freed and leaks its memory. > > Fix it by

[PATCH v2] tracing/probes: Fix memory leak in traceprobe_parse_probe_arg_body

2024-04-26 Thread lumingyindetect
From: LuMingYin If traceprobe_parse_probe_arg_body() fails to allocate 'parg->fmt', it jumps to 'out' instead of 'fail' by mistake. In the result, in this case the 'tmp' buffer is not freed and leaks its memory. Fix it by jumping to 'fail' in that case. Fixes: 032330abd08b ("tracing/probes: