Skip to content

Commit 7c2dccc

Browse files
committed
fix Belady memory leak
1 parent 9a4df9d commit 7c2dccc

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

libCacheSim/cache/eviction/Belady.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ static void Belady_free(cache_t *cache) {
8787
node = pqueue_pop(params->pq);
8888
}
8989
pqueue_free(params->pq);
90+
my_free(sizeof(Belady_params_t), params);
9091

9192
cache_struct_free(cache);
9293
}

0 commit comments

Comments
 (0)