Skip to content

Commit

Permalink
Try zeroing blocks before they are free'd
Browse files Browse the repository at this point in the history
  • Loading branch information
sadderchris committed Feb 3, 2022
1 parent c76d9ec commit 6828cc0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ionc/ion_allocation.c
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ ION_ALLOCATION_CHAIN *_ion_alloc_block(SIZE min_needed)
void _ion_free_block(ION_ALLOCATION_CHAIN *pblock)
{
if (!pblock) return;
memset(pblock, 0, pblock->size);
ion_xfree(pblock);
return;
}
Expand Down

0 comments on commit 6828cc0

Please sign in to comment.