summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/io.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/io.c b/src/io.c
index 682eea2..5f86678 100644
--- a/src/io.c
+++ b/src/io.c
@@ -89,6 +89,9 @@ int stream_close(struct stream * const in)
}
out:
+ if (in->settings->access == cached) {
+ cache_destroy(in);
+ }
err:
close(in->fd);
in->fd = -1;