[git commit] mount: free commented /etc/filesystems lines when we read it
Denys Vlasenko
vda.linux at googlemail.com
Thu Nov 3 08:54:53 UTC 2011
commit: http://git.busybox.net/busybox/commit/?id=f85554c26525ec2ddc860ccb1aadc05e7a3825f6
branch: http://git.busybox.net/busybox/commit/?id=refs/heads/master
Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
util-linux/mount.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/util-linux/mount.c b/util-linux/mount.c
index 56276ef..fddd7fb 100644
--- a/util-linux/mount.c
+++ b/util-linux/mount.c
@@ -522,12 +522,13 @@ static llist_t *get_block_backed_filesystems(void)
while ((buf = xmalloc_fgetline(f)) != NULL) {
if (strncmp(buf, "nodev", 5) == 0 && isspace(buf[5]))
- continue;
+ goto next;
fs = skip_whitespace(buf);
if (*fs == '#' || *fs == '*' || !*fs)
- continue;
+ goto next;
llist_add_to_end(&list, xstrdup(fs));
+ next:
free(buf);
}
if (ENABLE_FEATURE_CLEAN_UP) fclose(f);
More information about the busybox-cvs
mailing list