mirror of
git://git.musl-libc.org/musl
synced 2025-03-06 20:48:29 +01:00
fix mallocng regression in malloc_usable_size with null argument
commit d150764697
added support for null
argument in oldmalloc and was overlooked when switching to mallocng.
This commit is contained in:
parent
d046ec92c1
commit
5d464f524b
1 changed files with 1 additions and 0 deletions
|
@ -3,6 +3,7 @@
|
|||
|
||||
size_t malloc_usable_size(void *p)
|
||||
{
|
||||
if (!p) return 0;
|
||||
struct meta *g = get_meta(p);
|
||||
int idx = get_slot_index(p);
|
||||
size_t stride = get_stride(g);
|
||||
|
|
Loading…
Add table
Reference in a new issue