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 <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: Mathieu Desnoyers <[email protected]>
Link: https://lore.kernel.org/[email protected]
Fixes: 0ae6b8c ("ftrace: Fix accounting of subop hashes")
Signed-off-by: Steven Rostedt (Google) <[email protected]>1 parent 08275e5 commit c45c585
1 file changed
Lines changed: 7 additions & 1 deletion
| 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