fix out-of-memory check in offset test
This commit is contained in:
parent
c9c7dca498
commit
b404d6da6e
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user