diff --git a/roomserver/storage/sqlite3/membership_table.go b/roomserver/storage/sqlite3/membership_table.go index 834f908d9..4b9c3f6f3 100644 --- a/roomserver/storage/sqlite3/membership_table.go +++ b/roomserver/storage/sqlite3/membership_table.go @@ -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 {