changeset 703:8eb26e828756

Fix leak (call endmntent).
author Rob Landley <rob@landley.net>
date Sat, 17 Nov 2012 22:06:00 -0600
parents 9fb5fe6eb13f
children e45ab88c477d
files lib/getmountlist.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lib/getmountlist.c	Fri Nov 16 18:01:35 2012 -0600
+++ b/lib/getmountlist.c	Sat Nov 17 22:06:00 2012 -0600
@@ -38,5 +38,6 @@
       mtlist = mt;
     }
   }
+  endmntent(fp);
   return mtlist;
 }