summaryrefslogtreecommitdiff
path: root/samples
diff options
context:
space:
mode:
authorMiaoqian Lin <linmq006@gmail.com>2021-12-09 05:43:17 +0300
committerSteven Rostedt (VMware) <rostedt@goodmis.org>2021-12-09 21:03:05 +0300
commitc24be24aed405d64ebcf04526614c13b2adfb1d2 (patch)
treee7e93e4376865ae7b91c59ed2e0cd25a431bb7b3 /samples
parente1067a07cfbc5a36abad3752fafe4c79e06db1bb (diff)
downloadlinux-c24be24aed405d64ebcf04526614c13b2adfb1d2.tar.xz
tracing: Fix possible memory leak in __create_synth_event() error path
There's error paths in __create_synth_event() after the argv is allocated that fail to free it. Add a jump to free it when necessary. Link: https://lkml.kernel.org/r/20211209024317.11783-1-linmq006@gmail.com Suggested-by: Steven Rostedt (VMware) <rostedt@goodmis.org> Signed-off-by: Miaoqian Lin <linmq006@gmail.com> [ Fixed up the patch and change log ] Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions