We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 373860f + abdb333 commit 0c85506Copy full SHA for 0c85506
frameworks/Go/gin/gin-src/hello.go
@@ -99,6 +99,7 @@ func fortunes(c *gin.Context) {
99
c.AbortWithError(500, err)
100
return
101
}
102
+ defer rows.Close() // Ensure rows are closed
103
104
fortunes := make(Fortunes, 0)
105
for rows.Next() { //Fetch rows
frameworks/Go/gin/gin-std/main.go
0 commit comments