fix out-of-memory check in offset test

This commit is contained in:
Daniel Micay 2020-06-17 16:27:59 -04:00
parent c9c7dca498
commit b404d6da6e
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ int main(void) {
for (unsigned i = 0; i < N_SIZE_CLASSES; i++) { for (unsigned i = 0; i < N_SIZE_CLASSES; i++) {
size_t size = size_classes[i]; size_t size = size_classes[i];
p[i] = malloc(size); p[i] = malloc(size);
if (!p) { if (!p[i]) {
return 1; return 1;
} }
void *q = malloc(size); void *q = malloc(size);