diff options
Diffstat (limited to 'init')
-rw-r--r-- | init/builtins.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/init/builtins.c b/init/builtins.c index c192551..7f4daa7 100644 --- a/init/builtins.c +++ b/init/builtins.c @@ -433,6 +433,7 @@ int do_mount(int nargs, char **args) sprintf(tmp, "/dev/block/loop%d", n); loop = open(tmp, mode); if (loop < 0) { + close(fd); return -1; } |