Fixed an error left over in the previous commit.
This commit is contained in:
parent
fd4c559e86
commit
7086373807
|
@ -8,7 +8,7 @@ void *uiAlloc(size_t size)
|
||||||
|
|
||||||
out = malloc(size);
|
out = malloc(size);
|
||||||
if (out == NULL) {
|
if (out == NULL) {
|
||||||
fprintf(stderr, "memory exhausted in uiAlloc() allocating %s\n", type);
|
fprintf(stderr, "memory exhausted in uiAlloc()\n");
|
||||||
abort();
|
abort();
|
||||||
}
|
}
|
||||||
memset(out, 0, size);
|
memset(out, 0, size);
|
||||||
|
@ -23,7 +23,7 @@ void *uiRealloc(void *p, size_t size)
|
||||||
return uiAlloc(size);
|
return uiAlloc(size);
|
||||||
out = realloc(p, size);
|
out = realloc(p, size);
|
||||||
if (out == NULL) {
|
if (out == NULL) {
|
||||||
fprintf(stderr, "memory exhausted in uiRealloc() reallocating %s\n", type);
|
fprintf(stderr, "memory exhausted in uiRealloc()\n");
|
||||||
abort();
|
abort();
|
||||||
}
|
}
|
||||||
// TODO zero the extra memory
|
// TODO zero the extra memory
|
||||||
|
|
Loading…
Reference in New Issue