diff options
| author | [email protected] <[email protected]> | 2011-03-23 12:52:31 +0000 |
|---|---|---|
| committer | [email protected] <[email protected]> | 2011-03-23 12:52:31 +0000 |
| commit | 64cf67f39aa9248c6f5954c9941c22a5b4f76cb7 (patch) | |
| tree | 7b76051adc0dc33676bdd0017ef1e444ebcf2f03 /src/mem.c | |
| parent | 04b7474b6f57f3f25fb9e7f25a7af1a9835c4cb7 (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/mem.c')
| -rw-r--r-- | src/mem.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |
