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:
bernard.xiong@gmail.com 2011-03-23 12:52:31 +00:00
parent 04b7474b6f
commit 64cf67f39a
1 changed files with 1 additions and 1 deletions

View File

@ -498,7 +498,7 @@ void rt_free(void *rmem)
/* ... which has to be in a used state ... */
RT_ASSERT(mem->used);
RT_ASSERT(mem->magic != HEAP_MAGIC);
RT_ASSERT(mem->magic == HEAP_MAGIC);
/* ... and is now unused. */
mem->used = 0;
mem->magic = 0;