Ensure cleaning up
This commit is contained in:
@@ -39,6 +39,7 @@ func New() Config {
|
||||
as.Append(args.INT, "max-file-size", "max file size for uploads in bytes", 50*(1<<20))
|
||||
|
||||
if err := as.Parse(); err != nil {
|
||||
os.Remove(f.Name())
|
||||
panic(err)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user