Skip to content

Commit

Permalink
fix redis probe memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
dbeneker committed Feb 28, 2020
1 parent c4d78ec commit d23029d
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 d23029d

Please sign in to comment.