mirror of
https://github.com/matrix-org/dendrite.git
synced 2024-11-26 00:01:55 -06:00
Close the stmt after usage
This commit is contained in:
parent
da51f32e03
commit
fa4f7021a1
|
@ -312,6 +312,7 @@ func (s *membershipStatements) SelectRoomsWithMembership(
|
|||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
defer internal.CloseAndLogIfError(ctx, stmt, "SelectRoomsWithMembership: stmt.close() failed")
|
||||
params := make([]any, len(userIDs)+1)
|
||||
params[0] = membershipState
|
||||
for i, userID := range userIDs {
|
||||
|
|
Loading…
Reference in a new issue