Skip to content

Commit 14ee062

Browse files
authored
Merge pull request #33 from xiaomingTom/patch-1
修复resolver资源泄漏问题
2 parents bd7b966 + 52d7e4a commit 14ee062

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

global.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ func PolarisContext() (api.SDKContext, error) {
4848
if nil != polarisContext {
4949
return polarisContext, nil
5050
}
51-
return api.InitContextByConfig(PolarisConfig())
51+
var err error
52+
polarisContext, err = api.InitContextByConfig(PolarisConfig())
53+
return polarisContext, err
5254
}
5355

5456
// PolarisConfig get or init the global polaris configuration

0 commit comments

Comments
 (0)