Skip to content

Commit

Permalink
Merge pull request #16 from dbeneker/master
Browse files Browse the repository at this point in the history
fix redis probe memory leak
  • Loading branch information
martin-helmich authored Feb 28, 2020
2 parents c4d78ec + d23029d commit 8b2c0be
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/probe/probe_redis.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ func (r *redisProbe) Exec() error {
Addr: r.addr,
Password: r.password,
})
defer client.Close()

_, err := client.Ping().Result()
if err != nil {
Expand Down

0 comments on commit 8b2c0be

Please sign in to comment.