Memory leak fixes and optimisations.

This commit is contained in:
2025-08-28 09:59:47 +01:00
parent c878784f1e
commit e2e2be53c1
6 changed files with 342 additions and 43 deletions
+2
View File
@@ -42,6 +42,8 @@ func cleanupReplayCache() {
if replayCache != nil {
replayCache.Close()
replayCache = nil
// Reset the once to allow re-initialization
replayCacheOnce = sync.Once{}
}
}