diff options
author | Amaury Forgeot d'Arc <amauryfa@gmail.com> | 2012-06-28 23:42:46 (GMT) |
---|---|---|
committer | Amaury Forgeot d'Arc <amauryfa@gmail.com> | 2012-06-28 23:42:46 (GMT) |
commit | d958cc960f8262c5ec8ec7993d966aa19e4dbe3e (patch) | |
tree | 53a0103109e02c411089f7e7d8b114c03c50b16a /Modules | |
parent | 45f0d9835ce9546429b5c94b7bdea9c20ec91b02 (diff) | |
download | cpython-d958cc960f8262c5ec8ec7993d966aa19e4dbe3e.zip cpython-d958cc960f8262c5ec8ec7993d966aa19e4dbe3e.tar.gz cpython-d958cc960f8262c5ec8ec7993d966aa19e4dbe3e.tar.bz2 |
Issue #15219: Fix a reference leak when hashlib.new() is called with
invalid parameters.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_hashopenssl.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/_hashopenssl.c b/Modules/_hashopenssl.c index aa9dd4e..7f016d4 100644 --- a/Modules/_hashopenssl.c +++ b/Modules/_hashopenssl.c @@ -477,6 +477,7 @@ EVP_new(PyObject *self, PyObject *args, PyObject *kwdict) } if (!PyArg_Parse(name_obj, "s", &name)) { + PyBuffer_Release(&view); PyErr_SetString(PyExc_TypeError, "name must be a string"); return NULL; } |