summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
author[email protected] <[email protected]>2011-03-23 12:52:31 +0000
committer[email protected] <[email protected]>2011-03-23 12:52:31 +0000
commit64cf67f39aa9248c6f5954c9941c22a5b4f76cb7 (patch)
tree7b76051adc0dc33676bdd0017ef1e444ebcf2f03 /src
parent04b7474b6f57f3f25fb9e7f25a7af1a9835c4cb7 (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/mem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mem.c b/src/mem.c
index b928430628..fc8df6f9b5 100644
--- a/src/mem.c
+++ b/src/mem.c
@@ -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;