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:
anjiahao 2026-02-24 14:11:21 +08:00 committed by Lup Yuen Lee
parent 90147a72c2
commit 3770c0871c

View file

@ -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;