From d47ffeb9e35dbc7264ffa12fddaa6e0d3ba767a4 Mon Sep 17 00:00:00 2001 From: Eric Snow Date: Wed, 7 Dec 2022 15:02:47 -0700 Subject: gh-90110: Clean Up the C-analyzer Globals Lists (gh-100091) https://github.com/python/cpython/issues/90110 --- Parser/action_helpers.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Parser') diff --git a/Parser/action_helpers.c b/Parser/action_helpers.c index 27c093332f..f12dad095a 100644 --- a/Parser/action_helpers.c +++ b/Parser/action_helpers.c @@ -13,6 +13,7 @@ void * _PyPegen_dummy_name(Parser *p, ...) { // XXX This leaks memory from the initial arena. + // Use a statically allocated variable instead of a pointer? static void *cache = NULL; if (cache != NULL) { @@ -1287,4 +1288,4 @@ _PyPegen_nonparen_genexp_in_call(Parser *p, expr_ty args, asdl_comprehension_seq _PyPegen_get_last_comprehension_item(last_comprehension), "Generator expression must be parenthesized" ); -} \ No newline at end of file +} -- cgit v1.2.1