FastAPI - Database Integration
Identify the error in this FastAPI code snippet using SQLAlchemy connection pooling:
```python
engine = create_engine("sqlite:///./test.db", pool_size=5)
SessionLocal = sessionmaker(bind=engine)
@app.get("/users")
def get_users():
db = SessionLocal
users = db.query(User).all()
db.close()
return users
```
