From 2873426c8801b26563ffb1c63b26296e2ae515e5 Mon Sep 17 00:00:00 2001 From: David Declerck Date: Mon, 16 Sep 2024 15:36:53 +0200 Subject: [PATCH] Fix for 4970 failing on MacOS --- cobc/parser.y | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cobc/parser.y b/cobc/parser.y index 84465f2f4..2e6b190eb 100644 --- a/cobc/parser.y +++ b/cobc/parser.y @@ -9252,7 +9252,10 @@ report_group_description_entry: | level_number error _dot_or_else_end_of_report_group_description { /* Free tree associated with level number */ +#if 0 /* works fine without, leads to invalid free otherwise [COB_TREE_DEBUG] */ + /* Free tree associated with level number */ cobc_parse_free ($1); +#endif yyerrok; check_pic_duplicate = 0; check_duplicate = 0;