]> granicus.if.org Git - mutt/commitdiff
Release pwent after extracting data from it.
authorBrendan Cully <brendan@kublai.com>
Tue, 6 Sep 2005 00:36:19 +0000 (00:36 +0000)
committerBrendan Cully <brendan@kublai.com>
Tue, 6 Sep 2005 00:36:19 +0000 (00:36 +0000)
init.c

diff --git a/init.c b/init.c
index a716a802b2474e9de9578d49b19c69984f98ed6f..35ef161e73e0174ad8b1edaf846a554507431b18 100644 (file)
--- a/init.c
+++ b/init.c
@@ -2218,6 +2218,7 @@ void mutt_init (int skip_sys_rc, LIST *commands)
 
     Realname = safe_strdup (mutt_gecos_name (rnbuf, sizeof (rnbuf), pw));
     Shell = safe_strdup (pw->pw_shell);
+    endpwent ();
   }
   else 
   {