This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/15892] New: Memory leaks in libio/*
- From: "brooks at gcc dot gnu.org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Mon, 26 Aug 2013 18:01:20 +0000
- Subject: [Bug libc/15892] New: Memory leaks in libio/*
- Auto-submitted: auto-generated
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.