mirror of
https://github.com/MaJerle/lwmem.git
synced 2025-01-13 21:42:53 +08:00
FIx missing optional region parameter for alloc
This commit is contained in:
parent
3a9e5bd7bf
commit
bd75133c69
@ -467,7 +467,7 @@ prv_realloc(lwmem_t* const lw, const lwmem_region_t* region, void* const ptr, co
|
||||
return NULL;
|
||||
}
|
||||
if (ptr == NULL) {
|
||||
return prv_alloc(lw, NULL, size);
|
||||
return prv_alloc(lw, region, size);
|
||||
}
|
||||
|
||||
/* Try to reallocate existing pointer */
|
||||
|
Loading…
x
Reference in New Issue
Block a user