fix new introduced issue: RT_ASSERT(mem->magic != HEAP_MAGIC);
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1341 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
parent
04b7474b6f
commit
64cf67f39a
|
@ -498,7 +498,7 @@ void rt_free(void *rmem)
|
||||||
|
|
||||||
/* ... which has to be in a used state ... */
|
/* ... which has to be in a used state ... */
|
||||||
RT_ASSERT(mem->used);
|
RT_ASSERT(mem->used);
|
||||||
RT_ASSERT(mem->magic != HEAP_MAGIC);
|
RT_ASSERT(mem->magic == HEAP_MAGIC);
|
||||||
/* ... and is now unused. */
|
/* ... and is now unused. */
|
||||||
mem->used = 0;
|
mem->used = 0;
|
||||||
mem->magic = 0;
|
mem->magic = 0;
|
||||||
|
|
Loading…
Reference in New Issue