Merge "liblog: don't bother keeping FD around once it's mapped."
am: d659510522
Change-Id: Iec9b0a52e0b2dd3f8d6dee30cef66f15f227bb66
This commit is contained in:
commit
5ae5b2c580
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…
Add table
Reference in a new issue