mirror of
https://github.com/python/cpython.git
synced 2025-07-12 13:55:34 +00:00
bpo-37316: mmap.mmap() passes the wrong variable to PySys_Audit() (GH-14152)
Also, add a missing call to va_end() in PySys_Audit().
This commit is contained in:
parent
08970cb03c
commit
08286d52b2
5 changed files with 13 additions and 1 deletions
|
@ -182,6 +182,7 @@ PySys_Audit(const char *event, const char *argFormat, ...)
|
|||
va_list args;
|
||||
va_start(args, argFormat);
|
||||
eventArgs = Py_VaBuildValue(argFormat, args);
|
||||
va_end(args);
|
||||
if (eventArgs && !PyTuple_Check(eventArgs)) {
|
||||
PyObject *argTuple = PyTuple_Pack(1, eventArgs);
|
||||
Py_DECREF(eventArgs);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue