mirror of
https://github.com/MaJerle/lwmem.git
synced 2025-01-26 06:02:54 +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;
|
return NULL;
|
||||||
}
|
}
|
||||||
if (ptr == NULL) {
|
if (ptr == NULL) {
|
||||||
return prv_alloc(lw, NULL, size);
|
return prv_alloc(lw, region, size);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Try to reallocate existing pointer */
|
/* Try to reallocate existing pointer */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user