commit | fdd2fba6e7db84445e8be081f4d8dae1f84d905c | [log] [tgz] |
---|---|---|
author | Tianjie Xu <xunchang@google.com> | Mon Sep 11 12:01:09 2017 -0700 |
committer | Tianjie Xu <xunchang@google.com> | Mon Sep 11 14:08:32 2017 -0700 |
tree | 4f3974078306f15a7076d8907eeec8aedacc5186 | |
parent | e17b360e4a8e1daa35c3834dd26fa49d519cba22 [diff] |
Add the Release function for TemporaryFiles Some tests may create a File* by calling fdopen() on the temp file's fd. We should release the ownership of fd in this case to avoid the double close. Bug: 65430057 Test: libbase unit tests pass Change-Id: I54fcce2029f9a574f53afdbdda737ee58620c73a