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

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
}