mirror of https://github.com/python/cpython
bpo-40479: Fix undefined behavior in Modules/_hashopenssl.c (GH-31153)
va_end() must be called before returning.
This commit is contained in:
parent
a335d98f19
commit
59e004af63
|
@ -0,0 +1 @@
|
|||
Add a missing call to ``va_end()`` in ``Modules/_hashopenssl.c``.
|
|
@ -266,6 +266,7 @@ _setException(PyObject *exc, const char* altmsg, ...)
|
|||
} else {
|
||||
PyErr_FormatV(exc, altmsg, vargs);
|
||||
}
|
||||
va_end(vargs);
|
||||
return NULL;
|
||||
}
|
||||
va_end(vargs);
|
||||
|
|
Loading…
Reference in New Issue