Skip to content

Commit

Permalink
Merge pull request jlaffaye#59 from digineo/close-fix
Browse files Browse the repository at this point in the history
Add missing Close() before return
  • Loading branch information
jlaffaye authored Nov 24, 2016
2 parents c47cb8c + 73c8ae2 commit 17dda2a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ftp.go
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ func (c *ServerConn) cmdDataConnFrom(offset uint64, format string, args ...inter
if offset != 0 {
_, _, err := c.cmd(StatusRequestFilePending, "REST %d", offset)
if err != nil {
conn.Close()
return nil, err
}
}
Expand Down

0 comments on commit 17dda2a

Please sign in to comment.