commit | b709302f3125622986bd458dfb2954fda5e8366d | [log] [tgz] |
---|---|---|
author | Hai Shi <shihai1992@gmail.com> | Sun Apr 05 03:24:16 2020 +0800 |
committer | GitHub <noreply@github.com> | Sat Apr 04 21:24:16 2020 +0200 |
tree | a86af298ed71e6ee71c42802ef0ee969e43c48be | |
parent | a94e6272f16381349dbed74cdb738ec8ae23b4fe [diff] [blame] |
bpo-40077: Fix potential refleaks of _json: traverse memo (GH-19344) Fix possible refleaks in _json module, memo of PyScannerObject should be traversed.
diff --git a/Modules/_json.c b/Modules/_json.c index 4682cf8..8117d16 100644 --- a/Modules/_json.c +++ b/Modules/_json.c
@@ -652,6 +652,7 @@ Py_VISIT(self->parse_float); Py_VISIT(self->parse_int); Py_VISIT(self->parse_constant); + Py_VISIT(self->memo); return 0; }