Fix uninitialized variable access, release memory.
diff --git a/Python/pythonrun.c b/Python/pythonrun.c
index f2f14ed..7fe4cce 100644
--- a/Python/pythonrun.c
+++ b/Python/pythonrun.c
@@ -732,6 +732,7 @@
 	}
 
 	encoding = Py_GETENV("PYTHONIOENCODING");
+	errors = NULL;
 	if (encoding) {
 		encoding = strdup(encoding);
 		errors = strchr(encoding, ':');
@@ -825,6 +826,8 @@
 		status = -1;
 	}
 
+	if (encoding)
+		free(encoding);
 	Py_XDECREF(bimod);
 	Py_XDECREF(iomod);
 	return status;