From e4f93dc382a475a3f36d40f3768674f1c5c5b525 Mon Sep 17 00:00:00 2001 From: Timmy Welch Date: Sun, 12 Nov 2023 00:32:39 -0800 Subject: [PATCH] Close brotli stream --- main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/main.go b/main.go index be1ee4c..c33ec32 100644 --- a/main.go +++ b/main.go @@ -260,6 +260,7 @@ func download(current time.Time) { sqlite_reader := io.TeeReader(sqlite, sqlite_file) br := brotli.NewWriterLevel(sqlite_br_file, 5) + defer br.Close() log.Printf("starting compression of %s to %s\n", sqlite_filename, sqlite_br_filename)