OSDN Git Service

Fix descriptor leak after accepting connections
authorDave Platt <dplatt@google.com>
Fri, 6 Dec 2013 22:03:47 +0000 (14:03 -0800)
committerDave Platt <dplatt@google.com>
Fri, 6 Dec 2013 22:03:47 +0000 (14:03 -0800)
commit3e7305c6bf6062b5cb1e2ddcec6c6d30b4a8bc0d
tree6394b2c428c74df5f43ceae7895347ab48ceab94
parent6018d01427d7b1676c924e8ccc3bace450991315
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
Change-Id: I0a1a7c62ec3fbcf647a44a22110ddc778d14e5f4
core/java/android/net/LocalSocketImpl.java