FIx missing optional region parameter for alloc

This commit is contained in:
Tilen Majerle 2021-05-04 07:59:49 +02:00 committed by GitHub
parent 3a9e5bd7bf
commit bd75133c69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 */