Try again - fix bug #48300: Private mempools allocate foreign memory

This commit is contained in:
Dirk Ziegelmeier 2016-06-24 12:33:02 +02:00
parent efd3fb8f4e
commit 2c1bd363e6

View File

@ -91,7 +91,7 @@ extern const struct memp_desc* const memp_pools[MEMP_MAX];
#else /* MEMP_MEM_MALLOC */
#define LWIP_MEMPOOL_DECLARE(name,num,size,desc) u8_t memp_memory_ ## name ## _base \
[LWIP_MEM_ALIGN_SIZE(((num) * (MEMP_SIZE + MEMP_ALIGN_SIZE(size))))]; \
[((num) * (MEMP_SIZE + MEMP_ALIGN_SIZE(size))) + (MEM_ALIGNMENT-1)]; \
\
static struct memp *memp_tab_ ## name; \
\