https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115553
Bug ID: 115553 Summary: Memory leak in openmp.cc's gfc_free_expr_list - gfc_expr not freed Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: burnus at gcc dot gnu.org CC: jakub at gcc dot gnu.org Target Milestone: --- It looks as if a 'gfc_free_expr (list->expr)' is missing before the 'free' call in: However, I have not checked whether there are cases where only the list needs to be removed and the gfc_expr is used (and later freed elsewhere). * * * /* Free expression list. */ void gfc_free_expr_list (gfc_expr_list *list) { gfc_expr_list *n; for (; list; list = n) { n = list->next; free (list); } }