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:
Magnus Holmgren 2009-08-16 20:29:38 +00:00
parent c4266283f6
commit aaf3765669

View file

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