Skip to content

Commit faa46e7

Browse files
committed
fix: close file in the Upload func
Signed-off-by: guoguangwu <guoguangwug@gmail.com>
1 parent 654cfd1 commit faa46e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/lfs/filesystem_client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ func (c *FilesystemClient) Upload(ctx context.Context, objects []Pointer, callba
7575
if err != nil {
7676
return err
7777
}
78-
78+
defer f.Close()
7979
_, err = io.Copy(f, content)
8080

8181
return err

0 commit comments

Comments
 (0)