[Bug 215752] /bin/echo utility does not free() the memory which allocated by malloc()

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Jan 4 18:27:09 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=215752

--- Comment #3 from Maxim Konovalov <maxim at FreeBSD.org> ---
Hello,

This is not specific to FreeBSD.  Upon process termination, both voluntary or
involuntary, the whole address space including the heap of the process is
destroyed.  So, it is quite common for simple utilities like echo(1) with short
life cycle to rely on this.  I think pretty much any book of unix programming
covers that.  My personal recommendation is Steven's "Advanced programming in
the UNIX environment" aka APUE.

I'm going to close this ticket unless you have any concerns.

Maxim

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list