fix out-of-memory check in offset test
This commit is contained in:
1 parent
c9c7dca498
commit
b404d6da6e
1 file changed
+1
-1
+1
-1
@@ -34,7 +34,7 @@ int main(void) {
|
||||
for (unsigned i = 0; i < N_SIZE_CLASSES; i++) {
|
||||
size_t size = size_classes[i];
|
||||
p[i] = malloc(size);
|
||||
if (!p) {
|
||||
if (!p[i]) {
|
||||
return 1;
|
||||
}
|
||||
void *q = malloc(size);
|
||||
|
||||
Reference in new issue
Block a user