diff --git a/recount-server.go b/recount-server.go index 5f5fef1..2065ae4 100644 --- a/recount-server.go +++ b/recount-server.go @@ -43,6 +43,7 @@ func main() { log.Fatal(err) } log.Print("Database connected") + defer db.Close() // Confirm a successful connection. if err := db.Ping(); err != nil {