mirror of
https://github.com/MetaCubeX/Clash.Meta.git
synced 2025-04-19 08:40:57 +00:00
chore: force memory to be released once after rule loading
This commit is contained in:
parent
2e1c5091c3
commit
d462257e53
1 changed files with 2 additions and 1 deletions
|
@ -5,6 +5,7 @@ import (
|
|||
"net/netip"
|
||||
"os"
|
||||
"runtime"
|
||||
"runtime/debug"
|
||||
"strings"
|
||||
"sync"
|
||||
|
||||
|
@ -105,7 +106,7 @@ func ApplyConfig(cfg *config.Config, force bool) {
|
|||
loadProxyProvider(cfg.Providers)
|
||||
updateProfile(cfg)
|
||||
loadRuleProvider(cfg.RuleProviders)
|
||||
|
||||
debug.FreeOSMemory()
|
||||
tunnel.OnRunning()
|
||||
|
||||
log.SetLevel(cfg.General.LogLevel)
|
||||
|
|
Loading…
Add table
Reference in a new issue