]> git.baikalelectronics.ru Git - kernel.git/commit
tracing/dynevent: Fix a memory leak in an error handling path
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 11 Apr 2021 10:21:54 +0000 (12:21 +0200)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Tue, 13 Apr 2021 16:29:48 +0000 (12:29 -0400)
commit6b33816bad69ab85c2359cffd25bfc14fcacacee
tree11f5e5ed9f38818139a405731d05ba759ae8b693
parent5bd106bda499532e02f705a27494fcf4680d0419
tracing/dynevent: Fix a memory leak in an error handling path

We must free 'argv' before returning, as already done in all the other
paths of this function.

Link: https://lkml.kernel.org/r/21e3594ccd7fc88c5c162c98450409190f304327.1618136448.git.christophe.jaillet@wanadoo.fr
Fixes: a6294f64c964 ("tracing/dynevent: Delegate parsing to create function")
Acked-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/trace_dynevent.c