This is sources Bugzilla
Bugzilla Version 2.17.5
Bugzilla Bug 2072
  memory leak in stdio-common/printf_fp.c Last modified: 2006-04-25 18:39
     Query page      Enter new bug
Bug#: 2072   Hardware:   Reporter: Heiko Nardmann <heiko.nardmann@secunet.com>
Host: Target: Build:
Product:     Add CC:
Component:   Version:   CC:
Remove selected CCs
Status: RESOLVED   Priority:  
Resolution: FIXED   Severity:  
Assigned To: Ulrich Drepper <drepper@redhat.com>   Target Milestone:  
Flags: Requestee:
  backport ()
  examined ()
  testsuite ()
Summary:
Keywords:

Attachment Description Type Created Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 2072 depends on: Show dependency tree
Show dependency graph
Bug 2072 blocks:

Additional Comments:


Leave as RESOLVED FIXED
Reopen bug
Mark bug as VERIFIED

View Bug Activity   |   Format For Printing


Description:   Last confirmed: 2006-01-15 16:26 Opened: 2005-12-20 13:22
In stdio-common/printf_fp.c there are some locations (handling error  
situations) in function _printf_fp() where the deallocation of memory for  
wbuffer is not handled. E.g. the macros PADN() und outchar() return to caller  
without checking wbuffer. I'm not sure whether this is intentionally done or  
not.  
  
#define outchar(ch)							      \  
  do									      \  
    {									      \  
      register const int outc = (ch);					      \  
      if (putc (outc, fp) == EOF)					      \  
	return -1;							      \  
      ++done;								      \  
    } while (0)  
  
#define PADN(ch, len)							      \  
  do									      \  
    {									      \  
      if (PAD (fp, ch, len) != len)					      \  
	return -1;							      \  
      done += len;							      \  
    }									      \  
  while (0)

------- Additional Comment #1 From Andreas Jaeger 2006-01-15 16:26 -------
Those really seem to not get freed.

------- Additional Comment #2 From Ulrich Drepper 2006-04-25 18:39 -------
Should be fixed in CVS.

     Query page      Enter new bug
Actions: New | Query | bug # | Reports | Requests   New Account | Log In