mfunyu / malloc

Find out the workings behind optimum memory management and recode it, as well as free and realloc.
2 stars 0 forks source link

[bug] SMALL block un-freed when exceed MAX size by alignment #40

Closed mfunyu closed 11 months ago

mfunyu commented 1 year ago
else if (size <= SMALL_MAX)
        _free_alloc(&(g_malloc.small_magazine), chunk);