summaryrefslogtreecommitdiff
path: root/libunwindstack/tests/MemoryCacheTest.cpp
diff options
context:
space:
mode:
authorJosh Gao <jmgao@google.com>2019-04-18 16:46:42 -0700
committerJosh Gao <jmgao@google.com>2019-04-18 16:58:30 -0700
commit499601b94fa36759648542039d3df25e901ebb77 (patch)
treeac108140764b894ac24b6dceba42f7061fd6424f /libunwindstack/tests/MemoryCacheTest.cpp
parentfc1749280c895e42e814e66ec7ec484a962b2f94 (diff)
adb: fix double close in wait-for-*.
unique_fd's implicit conversion to int allows the following code to compile without error, leading to a double close: std::function<void(unique_fd)> func = [](int x) { close(x); }; func(unique_fd(42)); Test: treehugger Change-Id: I948ecda3a12738b3af6444fe2902d2f7b80e1b4c
Diffstat (limited to 'libunwindstack/tests/MemoryCacheTest.cpp')
0 files changed, 0 insertions, 0 deletions