summaryrefslogtreecommitdiffstats
path: root/tag.c
diff options
context:
space:
mode:
Diffstat (limited to 'tag.c')
-rw-r--r--tag.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tag.c b/tag.c
index b57df552..5862db63 100644
--- a/tag.c
+++ b/tag.c
@@ -213,6 +213,9 @@ tag_write(void)
ohash_delete(&tag_data);
if (stream != NULL)
fclose(stream);
+ else
+ close(tag_files.tfd);
+ tag_files.tfd = -1;
}
void