summaryrefslogtreecommitdiff
path: root/debuggerd/libdebuggerd/utility.cpp
diff options
context:
space:
mode:
authorChristopher Ferris <cferris@google.com>2017-04-05 12:09:17 -0700
committerChristopher Ferris <cferris@google.com>2017-04-05 12:30:12 -0700
commit48d08c2c9d3c82c752012f7e16558a5afdf22748 (patch)
treee695a39912b6df70a37328a867da25fb86ba2487 /debuggerd/libdebuggerd/utility.cpp
parent568dc01fdf973c2d731c9dafe7c5b73ecb6627aa (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