Nailed a couple of memory leaks, caught by Purify.
diff --git a/Modules/pwdmodule.c b/Modules/pwdmodule.c
index 69a81ef..4b09312 100644
--- a/Modules/pwdmodule.c
+++ b/Modules/pwdmodule.c
@@ -109,6 +109,7 @@
 			Py_DECREF(d);
 			return NULL;
 		}
+		Py_DECREF(v);
 	}
 	return d;
 }