实现动态库关闭功能

This commit is contained in:
kingecg 2025-09-19 20:50:26 +08:00
parent 7624246633
commit 7be2098072
1 changed files with 6 additions and 0 deletions

View File

@ -103,3 +103,9 @@ func (a *Ankointerceptor) loadLibrary(libPath string, libFuncMap map[string]func
return a.libMap[libName] return a.libMap[libName]
} }
func (a *Ankointerceptor) Close() {
for _, lib := range a.libhabdles {
purego.Dlclose(lib)
}
}