Merge pull request #210 from Open-CAS/fix-uuid-freeing

Fix volumes deinit routine
This commit is contained in:
Kamil Łepek 2019-06-28 13:22:43 +02:00 committed by GitHub
commit 6c869d97fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -123,8 +123,11 @@ void ocf_volume_deinit(ocf_volume_t volume)
env_free(volume->priv);
if (volume->uuid_copy && volume->uuid.data)
if (volume->uuid_copy && volume->uuid.data) {
env_vfree(volume->uuid.data);
volume->uuid.data = NULL;
volume->uuid.size = 0;
}
}
void ocf_volume_move(ocf_volume_t volume, ocf_volume_t from)