diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2005-09-19 06:43:44 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2005-09-19 06:43:44 (GMT) |
commit | 24b3c229857faae7964bce5a1c59617a3e0690d0 (patch) | |
tree | 5931720ebcd282bcd029014941360226fb4e8e13 /Modules | |
parent | f8948ca5d73f1cc02550ad6535f94daffd977cea (diff) | |
download | cpython-24b3c229857faae7964bce5a1c59617a3e0690d0.zip cpython-24b3c229857faae7964bce5a1c59617a3e0690d0.tar.gz cpython-24b3c229857faae7964bce5a1c59617a3e0690d0.tar.bz2 |
Forward port fixes for problems reported by valgrind
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/posixmodule.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 7319568..e1bdb1c 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -1179,6 +1179,7 @@ posix_access(PyObject *self, PyObject *args) Py_BEGIN_ALLOW_THREADS res = access(path, mode); Py_END_ALLOW_THREADS + PyMem_Free(path); return(PyBool_FromLong(res == 0)); } @@ -3012,7 +3013,7 @@ To both, return fd of newly opened pseudo-terminal.\n"); static PyObject * posix_forkpty(PyObject *self, PyObject *noargs) { - int master_fd, pid; + int master_fd = -1, pid; pid = forkpty(&master_fd, NULL, NULL, NULL); if (pid == -1) |