Skip to content

Commit

Permalink
Fix leak
Browse files Browse the repository at this point in the history
  • Loading branch information
henrybear327 committed Jun 17, 2024
1 parent 3a32c87 commit 53dabb2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/mpool.c
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,7 @@ void mpool_destroy(mpool_t *mp)
tmp = cur;
cur = cur->next;
free(tmp->mapped);
if (tmp != &mp->area)
free(tmp);
free(tmp);
}
#endif
free(mp);
Expand Down

0 comments on commit 53dabb2

Please sign in to comment.