diff --git a/lib/bdev/rbd/bdev_rbd.c b/lib/bdev/rbd/bdev_rbd.c index 528b33d6af..f0d077058c 100644 --- a/lib/bdev/rbd/bdev_rbd.c +++ b/lib/bdev/rbd/bdev_rbd.c @@ -155,6 +155,7 @@ bdev_rbd_init(const char *rbd_pool_name, const char *rbd_name, rbd_image_info_t goto err; } + rados_ioctx_destroy(io_ctx); return 0; err: rados_ioctx_destroy(io_ctx);