Add missing env wrapper

Signed-off-by: Michal Rakowski <michal.rakowski@intel.com>
This commit is contained in:
Michal Rakowski 2019-10-01 09:05:59 +02:00
parent 944d70288e
commit fc971b9961

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;
}