Add missing Close() before return

This commit is contained in:
Julian Kornberger 2016-11-18 01:20:19 +01:00
parent 025815df64
commit 73c8ae2c86

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