diff options
Diffstat (limited to 'Python/fileutils.c')
-rw-r--r-- | Python/fileutils.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/fileutils.c b/Python/fileutils.c index 439bc35159..22e72bdd5a 100644 --- a/Python/fileutils.c +++ b/Python/fileutils.c @@ -1461,6 +1461,7 @@ _Py_fopen_obj(PyObject *path, const char *mode) path_bytes = PyBytes_AS_STRING(bytes); if (PySys_Audit("open", "Osi", path, mode, 0) < 0) { + Py_DECREF(bytes); return NULL; } |