mirror of
https://github.com/Icinga/icingadb.git
synced 2026-02-18 18:18:00 -05:00
Merge pull request #1051 from Icinga/notifications-prepared-statements-close
notifications: Close Prepared Statement
This commit is contained in:
commit
e55f106fcc
1 changed files with 1 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue