0

Make sure we close DB statements to release resources (#354)

This commit is contained in:
Christian Muehlhaeuser 2020-11-12 23:46:56 +01:00 committed by GitHub
parent 16e578e993
commit cfb031a15c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,6 +31,7 @@ func createTable() {
if err != nil {
log.Fatal(err)
}
defer stmt.Close()
stmt.Exec()
}