svn commit: r316492 - in head/usr.bin/grep: . regex

Conrad Meyer cem at freebsd.org
Tue Apr 4 19:30:10 UTC 2017


On Tue, Apr 4, 2017 at 11:56 AM, Dimitry Andric <dim at freebsd.org> wrote:
> On 4 Apr 2017, at 19:14, Ngie Cooper (yaneurabeya) <yaneurabeya at gmail.com> wrote:
>> Where did xmalloc.c originate from?
>
> GNU.

I believe this to be completely incorrect.

> Almost all software from the GNU project relies on malloc wrappers
> which abort the program on allocation failures.

That is not what bsdgrep's xmalloc() did, if you read the code. It
simply tracks all allocations for basic leak analysis.

Abort on allocation failure would be a perfectly reasonable behavior
for bsdgrep(1), too.

Best,
Conrad


More information about the svn-src-all mailing list