Skip to content

Commit 316f710

Browse files
Daniel Bristot de Oliveirarostedt
authored andcommitted
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: 1eceb2f ("rtla/osnoise: Add osnoise top mode") Cc: Jonathan Corbet <[email protected]> Signed-off-by: Daniel Bristot de Oliveira <[email protected]> Signed-off-by: Steven Rostedt (Google) <[email protected]>
1 parent dd48f31 commit 316f710

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tools/tracing/rtla/src/osnoise_top.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -573,6 +573,7 @@ int osnoise_top_main(int argc, char **argv)
573573
osnoise_free_top(tool->data);
574574
osnoise_destroy_tool(record);
575575
osnoise_destroy_tool(tool);
576+
free(params);
576577
out_exit:
577578
exit(return_value);
578579
}

0 commit comments

Comments
 (0)