statements must be closed, or it leaves them all open

This commit is contained in:
Alex Grintsvayg 2018-08-07 15:58:31 -04:00
parent 1406c7fad9
commit baba10c54f

View file

@ -241,6 +241,11 @@ func (s *SQL) AddSDBlob(sdHash string, sdBlobLength int, sdBlob types.SdBlob) er
if err != nil { if err != nil {
return errors.Err(err) return errors.Err(err)
} }
err = stmt.Close()
if err != nil {
return errors.Err(err)
}
} }
return nil return nil
}) })