This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug other/30653] New: Memory leak in translate_name
- From: "wuhui1973 at 21cn dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 31 Jan 2007 13:05:59 -0000
- Subject: [Bug other/30653] New: Memory leak in translate_name
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
In function translate_name, in file gcc-4.1.1\gcc\prefix.c, at line 204,
variable key is allocated a block of memory, however this memory is never
returned to the system, which will casue memory leak. Suggest add "free(key);"
around line 227 just inside the for loop from line 193.
--
Summary: Memory leak in translate_name
Product: gcc
Version: 4.1.1
Status: UNCONFIRMED
Severity: trivial
Priority: P3
Component: other
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: wuhui1973 at 21cn dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30653