summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorDino Viehland <dinoviehland@gmail.com>2019-09-15 14:51:44 (GMT)
committerGitHub <noreply@github.com>2019-09-15 14:51:44 (GMT)
commit09dc2c672f937cbe53300cb680fca1f9c78ff976 (patch)
tree738ba25d0ea7f03dbbe06e767d5d1938ef480d77 /Modules
parent8b31a11a698cb5aa9b439b349c8de4e388846f73 (diff)
downloadcpython-09dc2c672f937cbe53300cb680fca1f9c78ff976.zip
cpython-09dc2c672f937cbe53300cb680fca1f9c78ff976.tar.gz
cpython-09dc2c672f937cbe53300cb680fca1f9c78ff976.tar.bz2
Fix missing dec ref (#16158)
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_randommodule.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/_randommodule.c b/Modules/_randommodule.c
index 8b0a024..1ea2bf2 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;
}