Merge "liblog: don't bother keeping FD around once it's mapped." into nyc-mr1-dev
This commit is contained in:
commit
bc7448afe3
1 changed files with 3 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue