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

Commit d75932b5 authored by Dave Platt's avatar Dave Platt Committed by Nick Kralevich
Browse files

Fix descriptor leak after accepting connections

After accepting a connection on a listening socket and
storing the resulting FileDescriptor into a newly created
LocalSocketImpl, the new impl's "descriptor was created
locally and should be closed normally" flag should be set.

(cherrypicked from 3e7305c6)

Bug: 11805817
Change-Id: I0a1a7c62ec3fbcf647a44a22110ddc778d14e5f4
parent eee2c72f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -326,6 +326,7 @@ class LocalSocketImpl
        }

        s.fd = accept(fd, s);
        s.mFdCreatedInternally = true;
    }

    /**
@@ -536,4 +537,3 @@ class LocalSocketImpl
        close();
    }
}