summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDino Viehland <dinoviehland@gmail.com>2019-09-15 15:51:44 +0100
committerGitHub <noreply@github.com>2019-09-15 15:51:44 +0100
commit09dc2c672f937cbe53300cb680fca1f9c78ff976 (patch)
tree738ba25d0ea7f03dbbe06e767d5d1938ef480d77
parent8b31a11a698cb5aa9b439b349c8de4e388846f73 (diff)
downloadcpython-git-09dc2c672f937cbe53300cb680fca1f9c78ff976.tar.gz
Fix missing dec ref (#16158)
-rw-r--r--Modules/_randommodule.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/_randommodule.c b/Modules/_randommodule.c
index 8b0a0244bf..1ea2bf28ab 100644
--- a/Modules/_randommodule.c
+++ b/Modules/_randommodule.c
@@ -572,6 +572,7 @@ static int
_random_clear(PyObject *module)
{
Py_CLEAR(_randomstate(module)->Random_Type);
+ Py_CLEAR(_randomstate(module)->Long___abs__);
return 0;
}