aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2012-11-17 22:06:00 -0600
committerRob Landley <rob@landley.net>2012-11-17 22:06:00 -0600
commit491eb800ef69a5e06f798372db8b32c87051ea90 (patch)
treed2370036cd6f4ab066a1bad73db09d2db26784aa /lib
parentbbda4efd9d7cda269d71ae99054e1ad2590d1b02 (diff)
downloadtoybox-491eb800ef69a5e06f798372db8b32c87051ea90.tar.gz
Fix leak (call endmntent).
Diffstat (limited to 'lib')
-rw-r--r--lib/getmountlist.c1
1 files changed, 1 insertions, 0 deletions
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;
}