Merge pull request #210 from Open-CAS/fix-uuid-freeing
Fix volumes deinit routine
This commit is contained in:
commit
6c869d97fb
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user