Merge pull request #205 from imjfckm/fix-cache-leak

Fix leaking cache references
This commit is contained in:
Adam Rutkowski 2019-06-25 09:34:21 -04:00 committed by GitHub
commit 2c5b37bd11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -108,7 +108,7 @@ static void ocf_cleaner_run_complete(ocf_cleaner_t cleaner, uint32_t interval)
{ {
ocf_cache_t cache = ocf_cleaner_get_cache(cleaner); ocf_cache_t cache = ocf_cleaner_get_cache(cleaner);
ocf_async_unlock(&cache->lock); ocf_mngt_cache_unlock(cache);
cleaner->end(cleaner, interval); cleaner->end(cleaner, interval);
ocf_queue_put(cleaner->io_queue); ocf_queue_put(cleaner->io_queue);