diff options
author | Rob Landley <rob@landley.net> | 2012-11-17 22:06:00 -0600 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2012-11-17 22:06:00 -0600 |
commit | 491eb800ef69a5e06f798372db8b32c87051ea90 (patch) | |
tree | d2370036cd6f4ab066a1bad73db09d2db26784aa /lib/getmountlist.c | |
parent | bbda4efd9d7cda269d71ae99054e1ad2590d1b02 (diff) | |
download | toybox-491eb800ef69a5e06f798372db8b32c87051ea90.tar.gz |
Fix leak (call endmntent).
Diffstat (limited to 'lib/getmountlist.c')
-rw-r--r-- | lib/getmountlist.c | 1 |
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; } |