Merge pull request #468 from robertbaldyga/fix-use-after-free
ocf_request: Fix use after free bug
This commit is contained in:
commit
c36eefbaf0
@ -206,8 +206,8 @@ void ocf_req_put(struct ocf_request *req)
|
||||
|
||||
if (!env_mpool_del(req->cache->owner->resources.req, req,
|
||||
req->core_line_count)) {
|
||||
env_mpool_del(req->cache->owner->resources.req, req, 1);
|
||||
env_free(req->map);
|
||||
env_mpool_del(req->cache->owner->resources.req, req, 1);
|
||||
}
|
||||
|
||||
ocf_queue_put(queue);
|
||||
|
Loading…
Reference in New Issue
Block a user