Merge pull request #59 from digineo/close-fix

Add missing Close() before return
This commit is contained in:
Julien Laffaye 2016-11-24 10:15:47 +01:00 committed by GitHub
commit 17dda2a76c

1
ftp.go
View File

@ -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
}
}