提交 64cf67f3 编写于 作者: B bernard.xiong@gmail.com

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
上级 04b7474b
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册