metadata: Use proper function for freeing memory
a_req is allocated using env_vmalloc() so we need to free it using env_vfree(), not env_free(). Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
This commit is contained in:
parent
1dfae0d166
commit
b7e59ee04a
@ -422,7 +422,7 @@ static int metadata_io_i_asynch(ocf_cache_t cache, ocf_queue_t queue, int dir,
|
||||
compl_hndl(cache, context, a_req->error);
|
||||
|
||||
if (env_atomic_dec_return(&a_req->req_active) == 0)
|
||||
env_free(a_req);
|
||||
env_vfree(a_req);
|
||||
|
||||
return 0;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user