#533 [API/Memory] approvals.py connection leak in ApprovalService factory
Description
EditFile: api/blueprints/v1/approvals.py:28-33. get_approval_service() creates direct connection on every call but never closes it. Called in every endpoint handler, causing connection leaks. IMPACT: Will exhaust database connections under load. FIX: Use context manager with finally: conn.close().
Comments
Loading comments...
Context
Loading context...
Audit History
View AllLoading audit history...