mirror of
https://github.com/python/cpython.git
synced 2025-10-06 15:11:58 +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
|
@ -1154,7 +1154,7 @@ new_mmap_object(PyTypeObject *type, PyObject *args, PyObject *kwdict)
|
|||
}
|
||||
|
||||
if (PySys_Audit("mmap.__new__", "ini" _Py_PARSE_OFF_T,
|
||||
fileno, map_size, access, offset) < 0) {
|
||||
fd, map_size, access, offset) < 0) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue