Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c325535d authored by JP Abgrall's avatar JP Abgrall Committed by Gerrit Code Review
Browse files

Merge "Close fd on error path in do_mount()"

parents ca1797ae bfdcc40b
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;
            }