Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit db816d6

Browse files
committed
Issue #19420: Fix reference leak in module initalization code of _hashopenssl.c
1 parent fa3ba4c commit db816d6

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

Misc/NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ Core and Builtins
2828
Library
2929
-------
3030

31+
- Issue #19420: Fix reference leak in module initalization code of
32+
_hashopenssl.c
33+
3134
- Issue #19329: Optimized compiling charsets in regular expressions.
3235

3336
- Issue #19227: Try to fix deadlocks caused by re-seeding then OpenSSL

Modules/_hashopenssl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -717,9 +717,9 @@ _openssl_hash_name_mapper(const OBJ_NAME *openssl_obj_name, void *arg)
717717
state->error = 1;
718718
} else {
719719
if (PySet_Add(state->set, py_name) != 0) {
720-
Py_DECREF(py_name);
721720
state->error = 1;
722721
}
722+
Py_DECREF(py_name);
723723
}
724724
}
725725

0 commit comments

Comments
 (0)