> Date: Fri, 25 Dec 2015 11:56:33 +0100
> From: [email protected]
> 
> Hi tech@,
> 
> it looks like there is a memory leak in libc.  In file
> "src/lib/libc/stdio/makebuf.c" line 62 malloc(3) is called, but
> never freed, when printf(3) is called.

Not really a leak.  That buffer gets freed when fclose() gets called.
However we don't do that in the cleanup handler.  I don't know why,
but the commented out code in stdio/findfp.c:_cleanup() suggests
somebody considered doing so at some point.

Reply via email to