diff --git a/vdirsyncer/storage/filesystem.py b/vdirsyncer/storage/filesystem.py index 2b56ce1..bac7fda 100644 --- a/vdirsyncer/storage/filesystem.py +++ b/vdirsyncer/storage/filesystem.py @@ -36,6 +36,7 @@ class safe_write(object): return self def __exit__(self, type, value, tb): + self.f.close() if type is None: os.rename(self.tmppath, self.fpath) else: