diff options
| author | [email protected] <[email protected]> | 2011-07-04 23:48:07 +0000 |
|---|---|---|
| committer | [email protected] <[email protected]> | 2011-07-04 23:48:07 +0000 |
| commit | cea21370a40d8b9ace858c477d5cedf214cdf520 (patch) | |
| tree | 8144ca112fbc77be725326182d0dcb3d530c55f3 /src/mempool.c | |
| parent | 3bc0dd4a825f80a0e56d8a92e633a06435f1ac40 (diff) | |
rewrite module memory allocator
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1618 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'src/mempool.c')
| -rw-r--r-- | src/mempool.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mempool.c b/src/mempool.c index d1a1527b9c..df6ece85fe 100644 --- a/src/mempool.c +++ b/src/mempool.c @@ -267,7 +267,7 @@ rt_err_t rt_mp_delete(rt_mp_t mp) rt_hw_interrupt_enable(temp); } -#ifdef RT_USING_MODULE +#if defined(RT_USING_MODULE) && defined(RT_USING_SLAB) /* the mp object belongs to an application module */ if(mp->parent.flag & RT_OBJECT_FLAG_MODULE) rt_module_free(mp->parent.module_id, mp->start_address); |
