Merge pull request #543 from mmichal10/fix-memleak

Deinit sequential cutoff on core removal
This commit is contained in:
Robert Baldyga 2021-07-27 10:33:09 +02:00 committed by GitHub
commit f04c181039
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -130,6 +130,7 @@ void cache_mngt_core_remove_from_cache(ocf_core_t core)
ocf_cache_t cache = ocf_core_get_cache(core);
ocf_core_id_t core_id = ocf_core_get_id(core);
ocf_core_seq_cutoff_deinit(core);
env_free(core->counters);
core->counters = NULL;
core->added = false;