XnLemon opened a new pull request, #3561: URL: https://github.com/apache/dubbo-go/pull/3561
### Description Fixes #3553 - subissue of #3552 About fd leak - loadCache: add defer cf.Close() immediately after the open succeeds (and drop the manual cf.Close()). - openLogFile: ensure every early-return path closes the previously opened handle `openLogFile` 不能简单在函数入口无条件 `defer f.Close()`,因为成功返回的文件句柄仍需由调用方或全局逻辑持有;应明确每个句柄的所有权,并在失败或被替换前关闭旧句柄。 ### Checklist - [x] I confirm the target branch is `develop` - [x] Code has passed local testing - [x] I have added tests that prove my fix is effective or that my feature works -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
