Issue #4873: Fix resource leaks in error cases of pwd and grp.
diff --git a/Misc/NEWS b/Misc/NEWS
index a054789..7e53d24 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -1067,6 +1067,8 @@
 Extension Modules
 -----------------
 
+- Issue #4873: Fix resource leaks in error cases of pwd and grp.
+
 - Issue #4751: For hashlib algorithms provided by OpenSSL, the Python
   GIL is now released during computation on data lengths >= 2048 bytes.