]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
librbd: images aren't closed in group_snap_*_by_record() on error
authorMiki Patel <miki.patel132@gmail.com>
Tue, 15 Jul 2025 11:07:16 +0000 (16:37 +0530)
committerMiki Patel <miki.patel132@gmail.com>
Thu, 17 Jul 2025 09:20:15 +0000 (14:50 +0530)
commit693eabf58cc19eba4c21e2ea7c0011643659b3c3
tree6d0c3c9e04186232480b8ad963ce842d3d296b5c
parent614e83cfecc1d16496caf27c20a9a3f5664b9e3f
librbd: images aren't closed in group_snap_*_by_record() on error

Fixes memory leak and handles resource leak scenario when at leat one IoCtx is not
created successfully. This is done by returning error before opening any image.
Changes are made in group_snap_remove_by_record and group_snap_rollback_by_record

Fixes: https://tracker.ceph.com/issues/71961
Signed-off-by: Miki Patel <miki.patel132@gmail.com>
src/librbd/api/Group.cc