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

Commit 7b09c7f3 authored by Steven Moreland's avatar Steven Moreland Committed by Automerger Merge Worker
Browse files

Merge "Fix pipe fds leak in copyInternalSpliceSocket" into main am: b6c0fa01

parents 17a071f2 b6c0fa01
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -580,6 +580,8 @@ public final class FileUtils {
                           ", copied:" + progress +
                           ", read:" + (count - countToRead) +
                           ", in pipe: " + countInPipe);
                    Os.close(pipes[0]);
                    Os.close(pipes[1]);
                    throw new ErrnoException("splice, pipe --> fdOut", EIO);
                } else {
                    progress += t;
@@ -607,6 +609,8 @@ public final class FileUtils {
                listener.onProgress(progressSnapshot);
            });
        }
        Os.close(pipes[0]);
        Os.close(pipes[1]);
        return progress;
    }