[issue38176] test_threading leaked [1, 1, 1] references: test_threads_join
STINNER Victor
report at bugs.python.org
Mon Sep 16 04:07:17 EDT 2019
STINNER Victor <vstinner at python.org> added the comment:
commit 09dc2c672f937cbe53300cb680fca1f9c78ff976
Author: Dino Viehland <dinoviehland at gmail.com>
Date: Sun Sep 15 15:51:44 2019 +0100
Fix missing dec ref (#16158)
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;
}
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue38176>
_______________________________________
More information about the Python-bugs-list
mailing list