diff --git a/liblog/event_tag_map.c b/liblog/event_tag_map.c index 3cb04cf47..345f0d360 100644 --- a/liblog/event_tag_map.c +++ b/liblog/event_tag_map.c @@ -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: