Skip to content

Commit

Permalink
fix(alloc): fix segment fault caused by uninitialized memory block
Browse files Browse the repository at this point in the history
  • Loading branch information
Water-Melon committed Feb 9, 2024
1 parent 4aa804a commit a74098d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/mln_alloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,7 @@ MLN_FUNC(, void *, mln_alloc_m, (mln_alloc_t *pool, mln_size_t size), (pool, siz
ch->blks[n] = blk;
ptr += size;
}
ch->blks[n] = NULL;
}

out:
Expand Down

0 comments on commit a74098d

Please sign in to comment.