diff options
author | Dino Viehland <dinoviehland@fb.com> | 2019-09-12 14:38:13 (GMT) |
---|---|---|
committer | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-09-12 14:38:13 (GMT) |
commit | 8d88e8c662a80c186c7a0e67f1c1f3d4010276f8 (patch) | |
tree | f0d909f3193b1abeab4e2d6562560dd1e1c5b49f /Python/ast.c | |
parent | 9a4963b932a087b78596cca0b8394ac898faa490 (diff) | |
download | cpython-8d88e8c662a80c186c7a0e67f1c1f3d4010276f8.zip cpython-8d88e8c662a80c186c7a0e67f1c1f3d4010276f8.tar.gz cpython-8d88e8c662a80c186c7a0e67f1c1f3d4010276f8.tar.bz2 |
bpo-38138: Fix memory leak introduced by interned strings (GH-16053)
Interned string needs to be decref'd
https://bugs.python.org/issue38138
Automerge-Triggered-By: @matrixise
Diffstat (limited to 'Python/ast.c')
-rw-r--r-- | Python/ast.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/ast.c b/Python/ast.c index 46815c2..e6f7167 100644 --- a/Python/ast.c +++ b/Python/ast.c @@ -630,6 +630,7 @@ new_identifier(const char *n, struct compiling *c) PyObject *args[2] = {form, id}; id2 = _PyObject_FastCall(c->c_normalize, args, 2); Py_DECREF(id); + Py_DECREF(form); if (!id2) return NULL; if (!PyUnicode_Check(id2)) { |