mirror of
https://github.com/apache/nuttx.git
synced 2026-08-01 20:28:58 +00:00
mm:use mm_malloc inside of mm_memalign
Test build breadxavr:nsh: ➜ size nuttx_with_mm_memalgin text data bss dec hex filename 53018 91 556 53665 d1a1 nuttx_with_mm_memalgin ~/work/nuttxwork/nuttx ➜ size nuttx text data bss dec hex filename 51580 91 556 52227 cc03 nuttx Signed-off-by: anjiahao <anjiahao@xiaomi.com>
This commit is contained in:
parent
90147a72c2
commit
3770c0871c
1 changed files with 1 additions and 1 deletions
|
|
@ -259,7 +259,7 @@ mm_initialize_heap(FAR const struct mm_heap_config_s *config)
|
|||
}
|
||||
else
|
||||
{
|
||||
heap = mm_memalign(heap, MM_ALIGN, sizeof(struct mm_heap_s));
|
||||
heap = mm_malloc(heap, sizeof(struct mm_heap_s));
|
||||
if (heap == NULL)
|
||||
{
|
||||
return NULL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue