We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1bd91f8 commit c1d2e97Copy full SHA for c1d2e97
src/memheap.c
@@ -517,6 +517,7 @@ void rt_memheap_free(void *ptr)
517
518
/* check magic */
519
RT_ASSERT((header_ptr->magic & RT_MEMHEAP_MASK) == RT_MEMHEAP_MAGIC);
520
+ RT_ASSERT(header_ptr->magic & RT_MEMHEAP_USED);
521
/* check whether this block of memory has been over-written. */
522
RT_ASSERT((header_ptr->next->magic & RT_MEMHEAP_MASK) == RT_MEMHEAP_MAGIC);
523
0 commit comments