This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/2226] Memory leak in fputws
- From: "markxjohnson at earthlink dot net" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 12 Feb 2006 19:32:33 -0000
- Subject: [Bug libc/2226] Memory leak in fputws
- References: <20060127183755.2226.markxjohnson@earthlink.net>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From markxjohnson at earthlink dot net 2006-02-12 19:32 -------
Although both buffers are deallocated, why is the buffer allocated via
mmap(NULL, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x2acbc5eac000
^
allocating 16384 bytes but the corresponding
munmap(0x2acbc5e87000, 4096) = 0
^
only releasing 4096 bytes - what happened to the other 12288 bytes (12KB)
Your answer also doesn't explain why fputs will still only consume 176KB of
memory but fputws consumes 120MB of memory in the second case - even though
the entry in /proc is not a completely accurate value why would the difference
be so huge?
--
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|INVALID |
http://sourceware.org/bugzilla/show_bug.cgi?id=2226
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.