commit | 7f63b9a92b2fa44b8f1fa4523300e1f3a4c32e4f | [log] [tgz] |
---|---|---|
author | Narayan Kamath <narayan@google.com> | Thu Apr 20 14:32:12 2017 +0100 |
committer | Narayan Kamath <narayan@google.com> | Tue Apr 25 08:53:09 2017 +0000 |
tree | db4ece7b2e03c998cbfa81312011b1d3ad2883de | |
parent | 5c5b6daecaeb4ea53e0cd16102cd3a5d7b8b22b9 [diff] |
CameraMetadataNative: Fix FD leak in dump. Always close the read end of the socketpair. In addition, return early if pthread_create fails. If we don't do this, we risk blocking forever on the read() and/or calling pthread_join on an undefined pthread_t. Test: run cts -m CtsCameraTestCases; Change-Id: I9adb872ac2dbca2474e04707b77945b0a08d9432