commit | b2f019ec1eb2dec1c87050dcf797cc8538d805b9 | [log] [tgz] |
---|---|---|
author | Narayan Kamath <narayan@google.com> | Thu Sep 01 19:09:02 2016 +0100 |
committer | Narayan Kamath <narayan@google.com> | Thu Sep 01 19:31:08 2016 +0100 |
tree | a956ff11f10fe981a9bdfae33b2753325970a35b | |
parent | 5b136369ca14b3e592868d1e2a1aeffe37bbc2a6 [diff] |
liblog: don't bother keeping FD around once it's mapped. Posix and linux explicitly state that this isn't necessary. bug: 30963384 Change-Id: I2cc16ded04f0ebc909dc3027e02867594fb49d05
diff --git a/liblog/event_tag_map.c b/liblog/event_tag_map.c index 3cb04cf..345f0d3 100644 --- a/liblog/event_tag_map.c +++ b/liblog/event_tag_map.c
@@ -99,6 +99,9 @@ if (processFile(newTagMap) != 0) goto fail; + if (fd >= 0) + close(fd); + return newTagMap; fail: