From 491eb800ef69a5e06f798372db8b32c87051ea90 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sat, 17 Nov 2012 22:06:00 -0600 Subject: Fix leak (call endmntent). --- lib/getmountlist.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/getmountlist.c b/lib/getmountlist.c index efbcff13..372398ba 100644 --- a/lib/getmountlist.c +++ b/lib/getmountlist.c @@ -38,5 +38,6 @@ struct mtab_list *getmountlist(int die) mtlist = mt; } } + endmntent(fp); return mtlist; } -- cgit v1.2.3