← Back to DAGDA | Support | Source: https://github.com/python/cpython/commit/b709302f3125622986bd458dfb2954fda5e8366d
Skip to content

Commit b709302

Browse files
authored
bpo-40077: Fix potential refleaks of _json: traverse memo (GH-19344)
Fix possible refleaks in _json module, memo of PyScannerObject should be traversed.
1 parent a94e627 commit b709302

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix possible refleaks in :mod:`_json`, memo of PyScannerObject should be traversed.

‎Modules/_json.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -652,6 +652,7 @@ scanner_traverse(PyScannerObject *self, visitproc visit, void *arg)
652652
Py_VISIT(self->parse_float);
653653
Py_VISIT(self->parse_int);
654654
Py_VISIT(self->parse_constant);
655+
Py_VISIT(self->memo);
655656
return 0;
656657
}
657658

0 commit comments

Comments
 (0)