Forward port fixes for problems reported by valgrind
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 @@
 	Py_BEGIN_ALLOW_THREADS
 	res = access(path, mode);
 	Py_END_ALLOW_THREADS
+	PyMem_Free(path);
 	return(PyBool_FromLong(res == 0));
 }
 
@@ -3012,7 +3013,7 @@
 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)