diff options
author | Christian Heimes <christian@cheimes.de> | 2013-10-29 11:14:55 (GMT) |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2013-10-29 11:14:55 (GMT) |
commit | db816d65464051ffa1aa2cce59dc7df721bbe873 (patch) | |
tree | 80f9256ae7ca9eb591597317be8159ab8f56fc8d | |
parent | fa3ba4c3bc31e8d1b78d0f8f97b1b6140ffcbaef (diff) | |
download | cpython-db816d65464051ffa1aa2cce59dc7df721bbe873.zip cpython-db816d65464051ffa1aa2cce59dc7df721bbe873.tar.gz cpython-db816d65464051ffa1aa2cce59dc7df721bbe873.tar.bz2 |
Issue #19420: Fix reference leak in module initalization code of _hashopenssl.c
-rw-r--r-- | Misc/NEWS | 3 | ||||
-rw-r--r-- | Modules/_hashopenssl.c | 2 |
2 files changed, 4 insertions, 1 deletions
@@ -28,6 +28,9 @@ Core and Builtins Library ------- +- Issue #19420: Fix reference leak in module initalization code of + _hashopenssl.c + - Issue #19329: Optimized compiling charsets in regular expressions. - Issue #19227: Try to fix deadlocks caused by re-seeding then OpenSSL diff --git a/Modules/_hashopenssl.c b/Modules/_hashopenssl.c index 423b3b3..a4f6104 100644 --- a/Modules/_hashopenssl.c +++ b/Modules/_hashopenssl.c @@ -717,9 +717,9 @@ _openssl_hash_name_mapper(const OBJ_NAME *openssl_obj_name, void *arg) state->error = 1; } else { if (PySet_Add(state->set, py_name) != 0) { - Py_DECREF(py_name); state->error = 1; } + Py_DECREF(py_name); } } |