public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/40877]  New: memory leaks with gfc_charlen?
@ 2009-07-27 19:27 janus at gcc dot gnu dot org
  2009-08-05  8:57 ` [Bug fortran/40877] " pault at gcc dot gnu dot org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: janus at gcc dot gnu dot org @ 2009-07-27 19:27 UTC (permalink / raw)
  To: gcc-bugs

This PR is a reminder to check some places where a new gfc_charlen is allocated
without properly setting it into a namelist (ns->cl_list). Each of them may
potentially produce a memory leak (though I'm not completely sure):

 * expr.c (simplify_const_ref)
 * symbol.c (gfc_set_default_type, generate_isocbinding_symbol)
 * trans-decl.c (create_function_arglist)

I noticed them while working on PR40822, where I also introduced the function
gfc_new_charlen, which should be used instead of gfc_get_charlen to avoid
memory leaks.


-- 
           Summary: memory leaks with gfc_charlen?
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: janus at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40877


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2009-08-17  9:14 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-27 19:27 [Bug fortran/40877] New: memory leaks with gfc_charlen? janus at gcc dot gnu dot org
2009-08-05  8:57 ` [Bug fortran/40877] " pault at gcc dot gnu dot org
2009-08-05 11:27 ` janus at gcc dot gnu dot org
2009-08-05 11:44 ` janus at gcc dot gnu dot org
2009-08-05 12:50 ` burnus at gcc dot gnu dot org
2009-08-05 13:21 ` janus at gcc dot gnu dot org
2009-08-05 14:51 ` janus at gcc dot gnu dot org
2009-08-05 15:01 ` pault at gcc dot gnu dot org
2009-08-05 20:25 ` janus at gcc dot gnu dot org
2009-08-17  9:11 ` janus at gcc dot gnu dot org
2009-08-17  9:14 ` janus at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).