mirror of
https://github.com/matrix-org/dendrite.git
synced 2024-11-29 09:41:57 -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 {
|
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 {
|
||||||
|
|
Loading…
Reference in a new issue