Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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) {