From 7be20980721ccfe61498d4044e472f735609b54b Mon Sep 17 00:00:00 2001 From: kingecg Date: Fri, 19 Sep 2025 20:50:26 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9E=E7=8E=B0=E5=8A=A8=E6=80=81=E5=BA=93?= =?UTF-8?q?=E5=85=B3=E9=97=AD=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- interceptor/dl.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/interceptor/dl.go b/interceptor/dl.go index b9e337f..0b9e667 100644 --- a/interceptor/dl.go +++ b/interceptor/dl.go @@ -103,3 +103,9 @@ func (a *Ankointerceptor) loadLibrary(libPath string, libFuncMap map[string]func return a.libMap[libName] } + +func (a *Ankointerceptor) Close() { + for _, lib := range a.libhabdles { + purego.Dlclose(lib) + } +}