Close the stmt after usage

This commit is contained in:
Till Faelligen 2023-07-03 09:04:26 +02:00
parent da51f32e03
commit fa4f7021a1
No known key found for this signature in database
GPG key ID: ACCDC9606D472758

View file

@ -312,6 +312,7 @@ func (s *membershipStatements) SelectRoomsWithMembership(
if err != nil { if err != nil {
return nil, err return nil, err
} }
defer internal.CloseAndLogIfError(ctx, stmt, "SelectRoomsWithMembership: stmt.close() failed")
params := make([]any, len(userIDs)+1) params := make([]any, len(userIDs)+1)
params[0] = membershipState params[0] = membershipState
for i, userID := range userIDs { for i, userID := range userIDs {