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
|
@ -0,0 +1 @@
|
|||
Fix possible refleaks in :mod:`_json`, memo of PyScannerObject should be traversed.
|
|
@ -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…
Reference in New Issue