From 3f194f1c7264945a63b0018b159cc83bd9385c59 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Mon, 26 Aug 2024 23:00:55 +0300 Subject: fix memory leaks destroying threads --- src/pmem.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/pmem.c') diff --git a/src/pmem.c b/src/pmem.c index e2177ea..871e15a 100644 --- a/src/pmem.c +++ b/src/pmem.c @@ -235,6 +235,7 @@ static bool __free_page(enum mm_order order, pm_t addr) struct mm_bmap *bmap = __get_set(bucket, set); bmap->used--; + assert(bitmap_is_set(bmap->bits, bit)); bitmap_clear(bmap->bits, bit); __attach_set(bucket, bmap); -- cgit v1.3