Merge "liblog: don't bother keeping FD around once it's mapped." into nyc-mr1-dev

This commit is contained in:
Narayan Kamath 2016-09-06 13:31:47 +00:00 committed by Android (Google) Code Review
commit bc7448afe3

View file

@ -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: