diff --git a/db/db.go b/db/db.go
index <HASH>..<HASH> 100644
--- a/db/db.go
+++ b/db/db.go
@@ -291,6 +291,8 @@ func (db *DB) Dump(dest string) error {
 			if err != nil {
 				return err
 			}
+			_ = destFile.Close()
+			_ = src.Close()
 			tdlog.Noticef("Dump: copied file %s, size is %d", destPath, written)
 		}
 		return nil
Close relative files during db.Dump