This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug driver/30640] Memory leak in lang_specific_driver
- From: "xiaoyuanbo at yeah dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 22 Feb 2012 12:27:57 +0000
- Subject: [Bug driver/30640] Memory leak in lang_specific_driver
- Auto-submitted: auto-generated
- References: <bug-30640-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30640
--- Comment #1 from xiaoyuanbo <xiaoyuanbo at yeah dot net> 2012-02-22 12:27:57 UTC ---
(In reply to comment #0)
> 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".
i understand arglist it is a block of memory
if in a pointer anything to a block that define privilage to a very people in
the family
free(*in_argv)i understand destroy envrionemtn
then envrionment damage