This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/40877] memory leaks with gfc_charlen?
- From: "janus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Aug 2009 13:21:46 -0000
- Subject: [Bug fortran/40877] memory leaks with gfc_charlen?
- References: <bug-40877-16146@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from janus at gcc dot gnu dot org 2009-08-05 13:21 -------
(In reply to comment #4)
> (In reply to comment #3)
> > Tobias, do you remember any of your thoughts when writing this?
>
> Well, they are essentially written in the patch email (linked from the PR
Yeah, ok, the general idea sounds fine. What I meant was that the way in which
you copy the cl seems to create a memory leak (cf. comment #2), since the newly
created cl is not reachable from any ns->cl_list.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40877