Skip to content

Commit 47895fa

Browse files
committed
fix a double-free bug
1 parent 7be6b40 commit 47895fa

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

libCacheSim/cache/eviction/RandomLRU.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ cache_t *RandomLRU_init(const common_cache_params_t ccache_params,
9898
static void RandomLRU_free(cache_t *cache) {
9999
RandomLRU_params_t *params = (RandomLRU_params_t *)(cache->eviction_params);
100100
free(params->eviction_candidates);
101-
free(params);
102101
cache_struct_free(cache);
103102
}
104103

0 commit comments

Comments
 (0)