Free memory when failed to open core volume

Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
This commit is contained in:
Michal Mielewczyk 2022-04-08 11:20:37 +02:00
parent a0bf8587a0
commit 9734980be2

View File

@ -44,7 +44,7 @@ int ocf_mngt_core_pool_add(ocf_ctx_t ctx, ocf_uuid_t uuid, uint8_t type)
result = ocf_volume_open(volume, NULL);
if (result) {
ocf_volume_deinit(volume);
ocf_volume_destroy(volume);
return result;
}