commit | 725e8f6856481b14a5fe465eb8552ce7a837896a | [log] [tgz] |
---|---|---|
author | Erik Kline <ek@google.com> | Wed Jul 04 17:57:51 2018 +0900 |
committer | Erik Kline <ek@google.com> | Thu Jul 05 15:23:40 2018 +0900 |
tree | 44c3da49ccdfac233d807c27bf764f9e45355a55 | |
parent | d004710e0e33e0b60b829146cc5147cacb064543 [diff] |
Always close file descriptors Every error thrown leaked a netlink NETFILTER socket. Test: as follows - built, flashed, booted - runtest frameworks-net passes - enabled tethering and tried to cause conntrack updates to sessions that had expired (which causes ErrnoExceptions to be thrown) while monitoring lsof for system_server's NETFILTER sockets Bug: 32163131 Bug: 64976634 Bug: 110122306 Change-Id: Ib52b812e8434c27ad9f2596666400c13e03c2216