diff options
| author | 2018-06-25 13:40:08 -0700 | |
|---|---|---|
| committer | 2018-06-25 13:40:08 -0700 | |
| commit | 7c4258c7248944598397eb796041afc95a1c46ad (patch) | |
| tree | c1710cde43dcd118ba42543e2891584ca345400a /libs/binder/BufferedTextOutput.cpp | |
| parent | 037b50ec793155cc965a02cb03be91a6158b6866 (diff) | |
dumpstate: fix double close.
fdopen takes ownership of the fd it's given, but dump_stat_from_fd
doesn't own the fd it's passed. These APIs should probably be cleaned
up to pass a unique_fd to explicitly transfer ownership, since the
caller immediately closes the fd afterwards, but until then, just dup.
Test: mma
Change-Id: Ie3a3c1b1951d6cc712850c326ca0bcfe46155a83
Diffstat (limited to 'libs/binder/BufferedTextOutput.cpp')
0 files changed, 0 insertions, 0 deletions