Merge pull request #1051 from Icinga/notifications-prepared-statements-close

notifications: Close Prepared Statement
This commit is contained in:
Alvar 2025-12-15 12:09:57 +00:00 committed by GitHub
commit e55f106fcc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -94,6 +94,7 @@ func (client *Client) fetchCustomVarFromSql(
if err != nil {
return nil, err
}
defer func() { _ = stmt.Close() }()
var customVars []customVar
if err := stmt.SelectContext(ctx, &customVars, id); err != nil {