Skip to content

Commit 986b204

Browse files
committed
Close conn when driver.KillCursors returns
GODRIVER-715 Change-Id: Ie6a5b52801bdcf40579e74ded06931ff13b412e1
1 parent eac374e commit 986b204

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

x/mongo/driver/kill_cursors.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,6 @@ func KillCursors(
3232
if err != nil {
3333
return result.KillCursors{}, err
3434
}
35+
defer conn.Close()
3536
return cmd.RoundTrip(ctx, desc, conn)
3637
}

0 commit comments

Comments
 (0)