Weekend fun with memory leaks

This commit is contained in:
2025-09-07 03:02:34 +01:00
parent e17b820368
commit c9a23dc6c0
13 changed files with 353 additions and 83 deletions
+3
View File
@@ -45,6 +45,9 @@ func resetGlobalState() {
globalMemoryPools = nil
memoryPoolOnce = sync.Once{}
memoryPoolMutex.Unlock()
// Reset global task registry to clear all background tasks
ResetGlobalTaskRegistry()
}
// testCleanup provides comprehensive cleanup for tests to prevent goroutine leaks