summaryrefslogtreecommitdiffstats
path: root/Parser/action_helpers.c
diff options
context:
space:
mode:
authorEric Snow <ericsnowcurrently@gmail.com>2022-12-07 22:02:47 (GMT)
committerGitHub <noreply@github.com>2022-12-07 22:02:47 (GMT)
commitd47ffeb9e35dbc7264ffa12fddaa6e0d3ba767a4 (patch)
treedf492a2e76ca4e427164b4ae6c3a041c84b8b436 /Parser/action_helpers.c
parentd92407ed497e3fc5acacb0294ab6095013e600f4 (diff)
downloadcpython-d47ffeb9e35dbc7264ffa12fddaa6e0d3ba767a4.zip
cpython-d47ffeb9e35dbc7264ffa12fddaa6e0d3ba767a4.tar.gz
cpython-d47ffeb9e35dbc7264ffa12fddaa6e0d3ba767a4.tar.bz2
gh-90110: Clean Up the C-analyzer Globals Lists (gh-100091)
https://github.com/python/cpython/issues/90110
Diffstat (limited to 'Parser/action_helpers.c')
-rw-r--r--Parser/action_helpers.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Parser/action_helpers.c b/Parser/action_helpers.c
index 27c0933..f12dad0 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
+}