diff --git a/pkg/notifications/fetch.go b/pkg/notifications/fetch.go index 58b1a0d7..9174c183 100644 --- a/pkg/notifications/fetch.go +++ b/pkg/notifications/fetch.go @@ -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 {