summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorDaniel Bristot de Oliveira <bristot@kernel.org>2022-02-18 18:57:08 +0100
committerSteven Rostedt (Google) <rostedt@goodmis.org>2022-02-25 21:05:30 -0500
commit316f710172461c501f9b73f3b2fc7ce8aa5b84a5 (patch)
treeb8361600a2f1b91cff2dbc382ca48e729f7649a5 /tools
parentdd48f316a1216fa10f9ba26852457794417d9bc6 (diff)
downloadlinux-316f710172461c501f9b73f3b2fc7ce8aa5b84a5.tar.gz
linux-316f710172461c501f9b73f3b2fc7ce8aa5b84a5.tar.bz2
linux-316f710172461c501f9b73f3b2fc7ce8aa5b84a5.zip
rtla/osnoise: Free params at the exit
The variable that stores the parsed command line arguments are not being free()d at the rtla osnoise top exit path. Free params variable before exiting. Link: https://lkml.kernel.org/r/0be31d8259c7c53b98a39769d60cfeecd8421785.1645206561.git.bristot@kernel.org Fixes: 1eceb2fc2ca5 ("rtla/osnoise: Add osnoise top mode") Cc: Jonathan Corbet <corbet@lwn.net> Signed-off-by: Daniel Bristot de Oliveira <bristot@kernel.org> Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Diffstat (limited to 'tools')
-rw-r--r--tools/tracing/rtla/src/osnoise_top.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/tracing/rtla/src/osnoise_top.c b/tools/tracing/rtla/src/osnoise_top.c
index c67dc28ef716..7af769b9c0de 100644
--- a/tools/tracing/rtla/src/osnoise_top.c
+++ b/tools/tracing/rtla/src/osnoise_top.c
@@ -573,6 +573,7 @@ out_top:
osnoise_free_top(tool->data);
osnoise_destroy_tool(record);
osnoise_destroy_tool(tool);
+ free(params);
out_exit:
exit(return_value);
}