[2.7] bpo-36179: Fix ref leaks in _hashopenssl (GH-12158) by tiran · Pull Request #12166 · python/cpython

@tiran

Fix two unlikely reference leaks in _hashopenssl. The leaks only occur in
out-of-memory cases. Thanks to Charalampos Stratakis.

Signed-off-by: Christian Heimes <christian@python.org>

https://bugs.python.org/issue36179.
(cherry picked from commit b7bc283)

Co-authored-by: Christian Heimes <christian@python.org>

vstinner