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

This commit is contained in:
Treehugger Robot 2016-09-05 18:33:03 +00:00 committed by Gerrit Code Review
commit d659510522
1 changed files with 3 additions and 0 deletions

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: