forked from len0rd/rockbox
Fix realloc bug in TLSF.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22355 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
c4266283f6
commit
aaf3765669
1 changed files with 2 additions and 1 deletions
|
|
@ -861,7 +861,8 @@ void *realloc_ex(void *ptr, size_t new_size, void *mem_pool)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ptr_aux = malloc_ex(new_size, mem_pool);
|
if (!(ptr_aux = malloc_ex(new_size, mem_pool)))
|
||||||
|
return NULL;
|
||||||
|
|
||||||
cpsize = ((b->size & BLOCK_SIZE) > new_size) ? new_size : (b->size & BLOCK_SIZE);
|
cpsize = ((b->size & BLOCK_SIZE) > new_size) ? new_size : (b->size & BLOCK_SIZE);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue