From 08286d52b29de604a4b187bf1f0d4209e39c926c Mon Sep 17 00:00:00 2001 From: Zackery Spytz Date: Fri, 21 Jun 2019 09:31:59 -0600 Subject: bpo-37316: mmap.mmap() passes the wrong variable to PySys_Audit() (GH-14152) Also, add a missing call to va_end() in PySys_Audit(). --- Python/sysmodule.c | 1 + 1 file changed, 1 insertion(+) (limited to 'Python/sysmodule.c') diff --git a/Python/sysmodule.c b/Python/sysmodule.c index 8da839c5a5..d1a6c6a026 100644 --- a/Python/sysmodule.c +++ b/Python/sysmodule.c @@ -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); -- cgit v1.2.1