Merge pull request #301 from micrakow/missing_env

Add missing env wrapper
This commit is contained in:
Katarzyna Łapińska 2019-10-01 09:13:11 +02:00 committed by GitHub
commit 79a2d866ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -35,7 +35,7 @@ int ocf_queue_create(ocf_cache_t cache, ocf_queue_t *queue,
result = env_spinlock_init(&tmp_queue->io_list_lock);
if (result) {
ocf_mngt_cache_put(cache);
free(tmp_queue);
env_free(tmp_queue);
return result;
}