[Python-checkins] Fix missing dec ref (#16158)

Dino Viehland webhook-mailer at python.org
Sun Sep 15 10:51:53 EDT 2019


https://github.com/python/cpython/commit/09dc2c672f937cbe53300cb680fca1f9c78ff976
commit: 09dc2c672f937cbe53300cb680fca1f9c78ff976
branch: master
author: Dino Viehland <dinoviehland at gmail.com>
committer: GitHub <noreply at github.com>
date: 2019年09月15日T15:51:44+01:00
summary:
Fix missing dec ref (#16158)
files:
M Modules/_randommodule.c
diff --git a/Modules/_randommodule.c b/Modules/_randommodule.c
index 8b0a0244bfad..1ea2bf28abcc 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;
 }
 


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /