public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/2314] New: nss_parse_service_list leaks a tiny amount of memory
@ 2006-02-09 20:04 david at edeca dot net
  2006-02-09 20:16 ` [Bug libc/2314] " drepper at redhat dot com
                   ` (7 more replies)
  0 siblings, 8 replies; 14+ messages in thread
From: david at edeca dot net @ 2006-02-09 20:04 UTC (permalink / raw)
  To: glibc-bugs

In nsswitch.c:519 (CVS file version 1.61), new_service is malloc()ed but never  
free()d.  This results in minor memory leaks (~300 bytes) according to  
valgrind.  
  
The valgrind trace is below.  I tried fixing this one myself but failed 
miserably :) 
  
==2459== 312 (72 direct, 240 indirect) bytes in 2 blocks are definitely lost in  
loss record 3 of 11  
==2459==    at 0x401B45B: malloc  
(in /usr/lib/valgrind/x86-linux/vgpreload_memcheck.so)  
==2459==    by 0x43B67E8: nss_parse_service_list (nsswitch.c:519)  
==2459==    by 0x43B60D8: __nss_database_lookup (nsswitch.c:134)  
==2459==    by 0x450F1DB: ???  
==2459==    by 0x451075C: ???  
==2459==    by 0x43766B3: getpwnam_r@@GLIBC_2.1.2 (getXXbyYY_r.c:207)  
==2459==    by 0x43761CE: getpwnam (getXXbyYY.c:103)  
==2459==    by (my program)

-- 
           Summary: nss_parse_service_list leaks a tiny amount of memory
           Product: glibc
           Version: 2.3.6
            Status: NEW
          Severity: minor
          Priority: P2
         Component: libc
        AssignedTo: drepper at redhat dot com
        ReportedBy: david at edeca dot net
                CC: glibc-bugs at sources dot redhat dot com


http://sourceware.org/bugzilla/show_bug.cgi?id=2314

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2014-05-28 19:46 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-2314-131@http.sourceware.org/bugzilla/>
2011-08-29 14:42 ` [Bug libc/2314] nss_parse_service_list leaks a tiny amount of memory james.m.henderson at gmail dot com
2012-02-01  8:38 ` MaxZinal at yandex dot ru
2012-02-03 20:58 ` drepper.fsp at gmail dot com
2013-06-20 13:27 ` pika1021 at gmail dot com
2014-02-16 19:41 ` jackie.rosen at hushmail dot com
2014-05-28 19:46 ` schwab at sourceware dot org
2006-02-09 20:04 [Bug libc/2314] New: " david at edeca dot net
2006-02-09 20:16 ` [Bug libc/2314] " drepper at redhat dot com
2006-02-09 20:35 ` david at edeca dot net
2007-02-04  6:12 ` john at cellform dot com
2007-02-04  6:16 ` john at cellform dot com
2007-02-16  6:51 ` drepper at redhat dot com
2007-08-23 18:30 ` drepper at redhat dot com
2010-08-08 15:21 ` andi5 dot py at gmx dot net
2010-08-08 16:04 ` andi5 dot py at gmx dot net

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).