bdev/rbd: destroy ioctx in bdev_rbd_init
This fixes issue #301. Signed-off-by: Jim Harris <james.r.harris@intel.com> Change-Id: Ic1be6aaf440fe0f6e6e227772857c6412e7232f5 Reviewed-on: https://review.gerrithub.io/415282 Tested-by: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Pawel Kaminski <pawelx.kaminski@intel.com>
This commit is contained in:
parent
25c11b8e25
commit
f22755cfad
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user