Merge "liblog: don't bother keeping FD around once it's mapped."
This commit is contained in:
commit
d659510522
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)
|
if (processFile(newTagMap) != 0)
|
||||||
goto fail;
|
goto fail;
|
||||||
|
|
||||||
|
if (fd >= 0)
|
||||||
|
close(fd);
|
||||||
|
|
||||||
return newTagMap;
|
return newTagMap;
|
||||||
|
|
||||||
fail:
|
fail:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue