Files
Mikulas Patocka b27523a078 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 <[email protected]>
Assisted-by: Claude:claude-opus-5
Cc: [email protected]
Fixes: 7d111c81fa ("dm btree: introduce cursor api")
2026-11-06 20:38:53 +01:00
..
2025-04-04 11:31:42 -07:00
…