summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
Diffstat (limited to 'Modules')
-rw-r--r--Modules/posixmodule.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index 592f753..bce73a6 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -1553,6 +1553,7 @@ posix_chmod(PyObject *self, PyObject *args)
PyMem_Free(path);
return NULL;
}
+ PyMem_Free(path);
Py_INCREF(Py_None);
return Py_None;
#else /* Py_WIN_WIDE_FILENAMES */