Commit c45c585
committed
ftrace: Free ftrace hashes after they are replaced in the subops code
The subops processing creates new hashes when adding and removing subops.
There were some places that the old hashes that were replaced were not
freed and this caused some memory leaks.
Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Link: https://lore.kernel.org/20250417135939.245b128d@gandalf.local.home
Fixes: 0ae6b8c ("ftrace: Fix accounting of subop hashes")
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>1 parent 08275e5 commit c45c585
1 file changed
+7
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3609 | 3609 | | |
3610 | 3610 | | |
3611 | 3611 | | |
| 3612 | + | |
| 3613 | + | |
| 3614 | + | |
3612 | 3615 | | |
3613 | 3616 | | |
3614 | 3617 | | |
| |||
3703 | 3706 | | |
3704 | 3707 | | |
3705 | 3708 | | |
3706 | | - | |
| 3709 | + | |
3707 | 3710 | | |
| 3711 | + | |
| 3712 | + | |
| 3713 | + | |
3708 | 3714 | | |
3709 | 3715 | | |
3710 | 3716 | | |
| |||
0 commit comments