This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/15892] New: Memory leaks in libio/*


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

            Bug ID: 15892
           Summary: Memory leaks in libio/*
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
          Assignee: unassigned at sourceware dot org
          Reporter: brooks at gcc dot gnu.org
                CC: drepper.fsp at gmail dot com

As per OndÅej BÃlka's cppcheck results, there is a memory leak in
libio/memstream.c on line 87, and libio/wmemstream.c on line 88.  This code is
the error-exit if we fail to allocate "buf":

  if (buf == NULL)
    return NULL;

This clause should free the allocated new_f before exiting; currently, it is
leaked.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]