mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-04 05:58:57 +00:00
Back out previous commit after discussing it with Dmitrij Tejblum.
This commit is contained in:
parent
c58b5cffa1
commit
65b97b034e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=48672
@ -1081,8 +1081,6 @@ malloc(size_t size)
|
|||||||
THREAD_UNLOCK();
|
THREAD_UNLOCK();
|
||||||
if (malloc_xmalloc && !r)
|
if (malloc_xmalloc && !r)
|
||||||
wrterror("out of memory.\n");
|
wrterror("out of memory.\n");
|
||||||
if (!r)
|
|
||||||
errno = ENOMEM;
|
|
||||||
return (r);
|
return (r);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1135,8 +1133,6 @@ realloc(void *ptr, size_t size)
|
|||||||
THREAD_UNLOCK();
|
THREAD_UNLOCK();
|
||||||
if (malloc_xmalloc && !r)
|
if (malloc_xmalloc && !r)
|
||||||
wrterror("out of memory.\n");
|
wrterror("out of memory.\n");
|
||||||
if (!r)
|
|
||||||
errno = ENOMEM;
|
|
||||||
return (r);
|
return (r);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user