diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-08-26 23:00:55 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-08-26 23:00:55 +0300 |
| commit | 3f194f1c7264945a63b0018b159cc83bd9385c59 (patch) | |
| tree | 4d277264e75b197844eae154e96e73d9cd54de3a /src/pmem.c | |
| parent | 1b5a553194f47066d60bb1c9475af1f413af8f4a (diff) | |
| download | kmi-3f194f1c7264945a63b0018b159cc83bd9385c59.tar.gz kmi-3f194f1c7264945a63b0018b159cc83bd9385c59.zip | |
fix memory leaks destroying threads
Diffstat (limited to 'src/pmem.c')
| -rw-r--r-- | src/pmem.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |
