]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
tracing/synthetic: Free pending field on error path
authorYu Peng <pengyu@kylinos.cn>
Wed, 3 Jun 2026 06:25:32 +0000 (14:25 +0800)
committerSteven Rostedt <rostedt@goodmis.org>
Mon, 6 Jul 2026 17:04:19 +0000 (13:04 -0400)
commit15d9968b68e848a1a38ca875ba553b05dadae03d
treea6e2f3aeab72b3c0e6b40c37330d5d7a871a32cb
parent8cdeaa50eae8dad34885515f62559ee83e7e8dda
tracing/synthetic: Free pending field on error path

Some __create_synth_event() error paths run after parse_synth_field()
succeeds but before the field is stored in fields[]. The common cleanup
then misses the field. Free it before freeing argv.

Link: https://patch.msgid.link/20260603062533.1096320-1-pengyu@kylinos.cn
Signed-off-by: Yu Peng <pengyu@kylinos.cn>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/trace_events_synth.c