This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug other/30640] New: Memory leak in lang_specific_driver
- From: "wuhui1973 at 21cn dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Jan 2007 14:29:56 -0000
- Subject: [Bug other/30640] New: Memory leak in lang_specific_driver
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
in function lang_specific_driver, if shared gcclib is wanted, a new larger
memory block is allocated for the extra argument "-shared-libgcc". However, the
original memory is left alone and will cause memory leak. And I think statement
"free(*in_argv)" should added before "*in_argv = arglist;" at line 91, in file
"gcc-4.1.1\gcc\gccspec.c".
--
Summary: Memory leak in lang_specific_driver
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=30640