mirror of
https://github.com/python/cpython.git
synced 2025-08-22 17:55:18 +00:00
bpo-40077: Fix potential refleaks of _json: traverse memo (GH-19344)
Fix possible refleaks in _json module, memo of PyScannerObject should be traversed.
This commit is contained in:
parent
a94e6272f1
commit
b709302f31
2 changed files with 2 additions and 0 deletions
|
@ -652,6 +652,7 @@ scanner_traverse(PyScannerObject *self, visitproc visit, void *arg)
|
|||
Py_VISIT(self->parse_float);
|
||||
Py_VISIT(self->parse_int);
|
||||
Py_VISIT(self->parse_constant);
|
||||
Py_VISIT(self->memo);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue