diff options
| author | Mikulas Patocka <mpatocka@redhat.com> | 2026-11-06 19:49:33 +0100 |
|---|---|---|
| committer | Mikulas Patocka <mpatocka@redhat.com> | 2026-11-06 20:38:53 +0100 |
| commit | b27523a0781aae0b51ac13f29dc65373d14b8434 (patch) | |
| tree | 80ebad8c6e94bf47ab44157e9995c522868b5b3f /tools/perf/scripts/python | |
| parent | fa887f2ebee7aff97eb87b3365939616ade09774 (diff) | |
dm persistent data: don't leak bufio buffer if find_leaf fails
If find_leaf fails, the function dm_btree_cursor_begin would return an
error, but it would keep the dm-bufio buffers held. This would result in
a memory leak and a warning when releasing the dm-bufio cache.
This commit fixes it, so that dm_btree_cursor_begin releases the buffers
on error.
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Assisted-by: Claude:claude-opus-5
Cc: stable@vger.kernel.org
Fixes: 7d111c81fa29 ("dm btree: introduce cursor api")
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
