From baba10c54ff2be7e4d74281199b1f5623dea0811 Mon Sep 17 00:00:00 2001 From: Alex Grintsvayg Date: Tue, 7 Aug 2018 15:58:31 -0400 Subject: [PATCH] statements must be closed, or it leaves them all open --- db/db.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/db/db.go b/db/db.go index 3224249..8eb8dc6 100644 --- a/db/db.go +++ b/db/db.go @@ -241,6 +241,11 @@ func (s *SQL) AddSDBlob(sdHash string, sdBlobLength int, sdBlob types.SdBlob) er if err != nil { return errors.Err(err) } + + err = stmt.Close() + if err != nil { + return errors.Err(err) + } } return nil })