#533 [API/Memory] approvals.py connection leak in ApprovalService factory

closed critical Created 2025-12-17 16:28 · Updated 2025-12-17 18:46

Description

Edit
File: 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 All
Loading audit history...