diff options
author | Christopher Ferris <cferris@google.com> | 2017-04-05 12:09:17 -0700 |
---|---|---|
committer | Christopher Ferris <cferris@google.com> | 2017-04-05 12:30:12 -0700 |
commit | 48d08c2c9d3c82c752012f7e16558a5afdf22748 (patch) | |
tree | e695a39912b6df70a37328a867da25fb86ba2487 /debuggerd/libdebuggerd/utility.cpp | |
parent | 568dc01fdf973c2d731c9dafe7c5b73ecb6627aa (diff) |
Convert opens to use unique_fd.
Fixes a potential leak of fds in WriteStringToFile.
Test: I wrote a temporary test that failed the fchmod on host in
Test: WriteStringToFile. I verified this fails with the old code after running
Test: out of fds and passes with the new code.
Change-Id: I168160841e35dd480d59a69bb4aa8176899fbb32
Diffstat (limited to 'debuggerd/libdebuggerd/utility.cpp')
0 files changed, 0 insertions, 0 deletions