properly close file in error handling of saveConfig and saveBlob (#385)

This commit is contained in:
Michael Eischer
2026-10-12 21:34:24 +02:00
committed by GitHub
parent 40b067eb5e
commit ef0bde0f5a
2 changed files with 10 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
Bugfix: Clean up uploads that exceed the repository size limit
An upload that would exceed the repository size limit set with `--max-size`
leaked a file descriptor and left a temporary file behind. Rest-server now
closes that file and removes the temporary file.
https://github.com/restic/rest-server/pull/385