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.

Bug: 11805817

(cherry picked from commit 3e7305c6bf)

Change-Id: I723d7c5544ee4b6858894c215716cbc32a958df1
This commit is contained in:
Dave Platt
2013-12-06 14:03:47 -08:00
committed by dcashman
parent 02f042ddd9
commit 76e5ca81b3

View File

@@ -326,6 +326,7 @@ class LocalSocketImpl
}
s.fd = accept(fd, s);
s.mFdCreatedInternally = true;
}
/**
@@ -536,4 +537,3 @@ class LocalSocketImpl
close();
}
}