From 69538cb7e3f4bf5ab0385667bb49acbe41f9a4b2 Mon Sep 17 00:00:00 2001 From: "M. Mert Yildiran" Date: Wed, 27 Apr 2022 18:21:24 +0300 Subject: [PATCH] Revert "Bring back `debug.FreeOSMemory()` call" This reverts commit 1cce863bbbf208b2516ca2a58946d3cebe72c55e. --- tap/tcp_streams_map.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/tap/tcp_streams_map.go b/tap/tcp_streams_map.go index 56fee4164..45c32ca7a 100644 --- a/tap/tcp_streams_map.go +++ b/tap/tcp_streams_map.go @@ -2,7 +2,6 @@ package tap import ( "runtime" - _debug "runtime/debug" "sync" "time" @@ -48,7 +47,6 @@ func (streamMap *tcpStreamMap) CloseTimedoutTcpStreamChannels() { for { <-ticker.C - _debug.FreeOSMemory() streamMap.streams.Range(func(key interface{}, value interface{}) bool { stream := value.(*tcpStream) if stream.protoIdentifier.Protocol == nil {