diff options
| author | Chiachang Wang <chiachangwang@google.com> | 2021-11-29 17:42:08 +0800 |
|---|---|---|
| committer | Chiachang Wang <chiachangwang@google.com> | 2021-12-01 14:46:29 +0800 |
| commit | 0209c366627e98d6311629a0592c6e22be7d13e0 (patch) | |
| tree | 6c5fd58c32dcd6491e9fa9acc93c97b99657248a /tests/common/java/android/net/NetworkCapabilitiesTest.java | |
| parent | 44a20af4a32f68bec07e57aeb0c7a9fd09bf228c (diff) | |
Ensure created fd being closed
If exception s thrown while calling bindSocket(fd), the temporary
created ParcelFileDescriptor may not be closed as expected.
Ensure it's closed eventually.
Bug: 206042872
Test: atest FrameworksNetTests
Change-Id: Icde895978ab9281006ffd56335d1247462d9da28
Diffstat (limited to 'tests/common/java/android/net/NetworkCapabilitiesTest.java')
0 files changed, 0 insertions, 0 deletions
