diff options
author | Linus Torvalds <[email protected]> | 2024-03-26 14:59:48 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2024-03-27 09:03:22 -0700 |
commit | 5b4cdd9c5676559b8a7c944ac5269b914b8c0bb8 (patch) | |
tree | 394cf2ade2125b28bb736387704c1e9c37aeca67 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 7033999ecd7b8cf9ea59265035a0150961e023ee (diff) |
Fix memory leak in posix_clock_open()
If the clk ops.open() function returns an error, we don't release the
pccontext we allocated for this clock.
Re-organize the code slightly to make it all more obvious.
Reported-by: Rohit Keshri <[email protected]>
Acked-by: Oleg Nesterov <[email protected]>
Fixes: 60c6946675fc ("posix-clock: introduce posix_clock_context concept")
Cc: Jakub Kicinski <[email protected]>
Cc: David S. Miller <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions