driver: remove possible leak when quit

This commit is contained in:
alexisvisco 2020-04-17 18:53:47 +02:00
parent a5d374c6e0
commit 1cfe7c425f
2 changed files with 2 additions and 1 deletions

2
go.mod
View file

@ -1,3 +1,3 @@
module github.com/expectedsh/go-sonic
go 1.13
go 1.14

View file

@ -50,6 +50,7 @@ func (c *driver) Connect() error {
func (c *driver) Quit() error {
err := c.write("QUIT")
if err != nil {
c.close()
return err
}