diff options
| author | Dave Platt <dplatt@google.com> | 2013-12-06 14:03:47 -0800 |
|---|---|---|
| committer | Dave Platt <dplatt@google.com> | 2013-12-06 14:03:47 -0800 |
| commit | 3e7305c6bf6062b5cb1e2ddcec6c6d30b4a8bc0d (patch) | |
| tree | 6394b2c428c74df5f43ceae7895347ab48ceab94 /core/java/android/net/LocalSocketImpl.java | |
| parent | 6018d01427d7b1676c924e8ccc3bace450991315 (diff) | |
| download | frameworks_base-3e7305c6bf6062b5cb1e2ddcec6c6d30b4a8bc0d.zip frameworks_base-3e7305c6bf6062b5cb1e2ddcec6c6d30b4a8bc0d.tar.gz frameworks_base-3e7305c6bf6062b5cb1e2ddcec6c6d30b4a8bc0d.tar.bz2 | |
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
Diffstat (limited to 'core/java/android/net/LocalSocketImpl.java')
| -rw-r--r-- | core/java/android/net/LocalSocketImpl.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/java/android/net/LocalSocketImpl.java b/core/java/android/net/LocalSocketImpl.java index b2ee50a..119e533 100644 --- a/core/java/android/net/LocalSocketImpl.java +++ b/core/java/android/net/LocalSocketImpl.java @@ -326,6 +326,7 @@ class LocalSocketImpl } s.fd = accept(fd, s); + s.mFdCreatedInternally = true; } /** @@ -536,4 +537,3 @@ class LocalSocketImpl close(); } } - |
