From 09dc2c672f937cbe53300cb680fca1f9c78ff976 Mon Sep 17 00:00:00 2001 From: Dino Viehland Date: Sun, 15 Sep 2019 15:51:44 +0100 Subject: [PATCH] Fix missing dec ref (#16158) --- Modules/_randommodule.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Modules/_randommodule.c b/Modules/_randommodule.c index 8b0a0244bfa..1ea2bf28abc 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; }