mirror of
https://github.com/Luzifer/cloudkeys-go.git
synced 2024-11-08 14:10:05 +00:00
Close FDs after writing
This commit is contained in:
parent
9e7a92abe7
commit
bf49ccf10a
1 changed files with 1 additions and 0 deletions
|
@ -42,6 +42,7 @@ func (l *LocalStorage) Write(identifier string, data io.Reader) error {
|
|||
if err != nil {
|
||||
return err
|
||||
}
|
||||
defer f.Close()
|
||||
|
||||
_, err = io.Copy(f, data)
|
||||
return err
|
||||
|
|
Loading…
Reference in a new issue