bpo-40645: Fix ref leaks in _hashopenssl (GH-26079)

(cherry picked from commit 504ffdae4e0cb7775f3e584c3b1d20c262fdfd7e)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
1 file changed