]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-40645: Fix reference leak in the _hashopenssl extension (GH-26072)
authorPetr Viktorin <encukou@gmail.com>
Wed, 12 May 2021 16:04:34 +0000 (18:04 +0200)
committerGitHub <noreply@github.com>
Wed, 12 May 2021 16:04:34 +0000 (09:04 -0700)
commit3611db53f5b854cb6d01ee5ebb5e11c87bcc2df5
treeeb59d2310a37b5f326867e226078e601f29e2058
parentc40486a32d7e37b01ead94e701d69847f5b60e30
bpo-40645: Fix reference leak in the _hashopenssl extension (GH-26072)

The `PyModule_AddObjectRef` function doesn't steal a reference, so an extra `Py_DECREF` is needed.

Automerge-Triggered-By: GH:tiran
Modules/_hashopenssl.c