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