kirinzhu opened a new issue, #987: URL: https://github.com/apache/incubator-eventmesh/issues/987
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/eventmesh/issues?q=is%3Aissue) and found no similar issues. ### Environment Mac ### EventMesh version master ### What happened The method creates an IO stream object, does not assign it to any fields, pass it to other methods that might close it, or return it, and does not appear to close the stream on all paths out of the method. This may result in a file descriptor leak. It is generally a good idea to use a finally block to ensure that streams are closed. ### How to reproduce In class org.apache.eventmesh.common.config.ConfigurationWrapper In method org.apache.eventmesh.common.config.ConfigurationWrapper.load() Need to close java.io.Reader At ConfigurationWrapper.java:[line 85] ### Debug logs _No response_ ### Are you willing to submit PR? - [ ] Yes I am willing to submit a PR! -- 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]
