Skip to content

Commit

Permalink
defer add
Browse files Browse the repository at this point in the history
  • Loading branch information
uesugi committed Jun 14, 2018
1 parent 34beae7 commit 3f130f1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scp/scpcmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ func (r *RunInfoScp) forScp(mode string) {
finished <- true
return
}
defer session.Close()

cp.Permission = r.PermissionFlag
cp.Session = session

Expand Down

0 comments on commit 3f130f1

Please sign in to comment.