Archived
Woops, close the right fd
This commit is contained in:
1 parent
89885b9fb9
commit
e586fda5f2
1 file changed
+1
-1
@@ -725,7 +725,7 @@ func archiveLegacyConfig() {
|
||||
l.Warnf("Cannot archive config:", err)
|
||||
return
|
||||
}
|
||||
defer src.Close()
|
||||
defer dst.Close()
|
||||
|
||||
l.Infoln("Archiving config.xml")
|
||||
io.Copy(dst, src)
|
||||
|
||||
Reference in new issue
Block a user