Return to mem.c CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / libaitio / src |
version 1.2, 2012/07/03 08:51:05 | version 1.2.4.1, 2012/07/25 15:11:27 |
---|---|
Line 213 mpool_malloc(mpool_t * __restrict mp, u_int size, cons | Line 213 mpool_malloc(mpool_t * __restrict mp, u_int size, cons |
free(m); | free(m); |
mpool_unlock(mp); | mpool_unlock(mp); |
return NULL; | return NULL; |
} else /* quota */ | } else { /* quota */ |
mp->pool_quota.curr += size; | mp->pool_quota.curr += size; |
memset(m->alloc_mem, 0, align + 12); | |
} | |
} | } |
m->alloc_mem[0] = size / sizeof(u_int); | m->alloc_mem[0] = size / sizeof(u_int); |