diff options
| author | bernard <[email protected]> | 2015-01-19 13:21:09 +0800 |
|---|---|---|
| committer | bernard <[email protected]> | 2015-01-19 13:21:09 +0800 |
| commit | 8e439999e8ccaf93df7361f6e3c0ec8c7363bdd7 (patch) | |
| tree | 1c55d8d30940dfe518fe651bbe6aa33a7de64b7d /src/memheap.c | |
| parent | 7e871b0ddd50d39806b983652d19de7e6196b64d (diff) | |
Prepare for RT-Thread 1.2.4 release.v1.2.4
Diffstat (limited to 'src/memheap.c')
| -rw-r--r-- | src/memheap.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/memheap.c b/src/memheap.c index e19c83a08c..adb5c86053 100644 --- a/src/memheap.c +++ b/src/memheap.c @@ -517,6 +517,8 @@ void rt_memheap_free(void *ptr) /* check magic */ RT_ASSERT((header_ptr->magic & RT_MEMHEAP_MASK) == RT_MEMHEAP_MAGIC); + /* check whether this block of memory has been over-written. */ + RT_ASSERT((header_ptr->next->magic & RT_MEMHEAP_MASK) == RT_MEMHEAP_MAGIC); /* get pool ptr */ heap = header_ptr->pool_ptr; |
