Pooling cleanup.

This commit is contained in:
2025-09-30 10:47:26 +01:00
parent 913264c0b7
commit ac0f95dd14
14 changed files with 229 additions and 1437 deletions
+2 -2
View File
@@ -286,8 +286,8 @@ func (t *TraefikOidc) Close() error {
taskRegistry.StopAllTasks()
t.safeLogDebug("All global background tasks stopped")
CleanupGlobalMemoryPools()
t.safeLogDebug("Global memory pools cleaned up")
// Note: Centralized pool in internal/pool is singleton-managed and doesn't require explicit cleanup
t.safeLogDebug("Memory pools managed by singleton pattern")
// Force garbage collection to help with memory cleanup after shutdown
runtime.GC()