]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix missing dec ref (#16158)
authorDino Viehland <dinoviehland@gmail.com>
Sun, 15 Sep 2019 14:51:44 +0000 (15:51 +0100)
committerGitHub <noreply@github.com>
Sun, 15 Sep 2019 14:51:44 +0000 (15:51 +0100)
Modules/_randommodule.c

index 8b0a0244bfadbfeb474a63b84b651c8d72c9289f..1ea2bf28abccad1fb1bee6c0b05a193be401be1a 100644 (file)
@@ -572,6 +572,7 @@ static int
 _random_clear(PyObject *module)
 {
     Py_CLEAR(_randomstate(module)->Random_Type);
+    Py_CLEAR(_randomstate(module)->Long___abs__);
     return 0;
 }