Skip to content
Snippets Groups Projects
Commit fb166391 authored by Josh Gao's avatar Josh Gao
Browse files

Fix double close in btif.cc's dump.

dump closes a file descriptor that is still owned by a
ParcelFileDescriptor which leads eventually to a double close.

Test: treehugger
Change-Id: Id351b5429cb17b48e37313850a363d739d78c4a1
parent de5ab0a6
No related branches found
No related tags found
No related merge requests found
......@@ -326,8 +326,6 @@ static void dump(int fd, const char** arguments) {
#if (BTSNOOP_MEM == TRUE)
btif_debug_btsnoop_dump(fd);
#endif
close(fd);
}
static void dumpMetrics(std::string* output) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment