Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 04 Jan 2017 18:27:09 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 215752] /bin/echo utility does not free() the memory which allocated by malloc()
Message-ID:  <bug-215752-8-6sJSi9ZIoc@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-215752-8@https.bugs.freebsd.org/bugzilla/>
References:  <bug-215752-8@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help

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

--- Comment #3 from Maxim Konovalov <maxim@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.


Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-215752-8-6sJSi9ZIoc>