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

Commit bfd8eafa authored by Narayan Kamath's avatar Narayan Kamath
Browse files

liblog: don't bother keeping FD around once it's mapped.

Posix and linux explicitly state that this isn't necessary.

bug: 30963384
Change-Id: I2cc16ded04f0ebc909dc3027e02867594fb49d05
parent 0c572d01
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -99,6 +99,9 @@ LIBLOG_ABI_PUBLIC EventTagMap* android_openEventTagMap(const char* fileName)
    if (processFile(newTagMap) != 0)
        goto fail;

    if (fd >= 0)
      close(fd);

    return newTagMap;

fail: