Date: Sat, 02 Aug 2003 07:11:21 -0400 From: "Ryan T. Dean" <rtdean@cytherianage.net> To: freebsd-current@freebsd.org Subject: vfprintf() has a 4096-byte memory leak? Message-ID: <3F2B9C59.3060209@cytherianage.net>
next in thread | raw e-mail | index | archive | help
Hey all- I was doing some app debugging tonight, and noticed what appears to be a memory leak in vfprintf(). I've tested it on -CURRENT and -STABLE; any program that makes use of vfprintf() (ie, uses printf) appears to have a 4096 byte memory leak. The memory is allocated on the first vfprintf() call and is never deallocated. I've observed the memory leak on -CURRENT as of 30 Jul and -STABLE as of 29 Jul. It was also reported, indirectly, on ports@ on 21 Jul. The memory leak has been observed using dmalloc (devel/dmalloc; dmalloc.com) and NJAMD (sourceforge.net/projects/njamd). I suspect that there may be a similar leak in vsprintf() as well. I did file a PR (misc/55181), but I thought I should maybe give a shout-out to the list as well. -Ryan T. Dean
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3F2B9C59.3060209>