Make sure we close DB statements to release resources (#354)
This commit is contained in:
parent
16e578e993
commit
cfb031a15c
@ -31,6 +31,7 @@ func createTable() {
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
defer stmt.Close()
|
||||
stmt.Exec()
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user