Fix some memory/fd leaks for tag searching and empty account listing
[blerg.git] / tags.c
diff --git a/tags.c b/tags.c
index 1130d57..1911ac8 100644 (file)
--- a/tags.c
+++ b/tags.c
@@ -152,6 +152,7 @@ struct tag * tag_list(const char *tag, uint64_t offset, uint64_t *count, int dir
        }
 
        munmap(taglist, st.st_size);
+       close(tag_fd);
        return retlist;
 
 tag_list_malloc_failed: