Re: [I] Potential resource leakage in WordDictionary#loadMainDataFromFile [lucene]

2025-06-02 Thread via GitHub
jpountz closed issue #14719: Potential resource leakage in WordDictionary#loadMainDataFromFile URL: https://github.com/apache/lucene/issues/14719 -- 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

Re: [I] Potential resource leakage in WordDictionary#loadMainDataFromFile [lucene]

2025-06-02 Thread via GitHub
jpountz commented on issue #14719: URL: https://github.com/apache/lucene/issues/14719#issuecomment-2930382910 Fixed via #14727 -- 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

Re: [I] Potential resource leakage in WordDictionary#loadMainDataFromFile [lucene]

2025-05-27 Thread via GitHub
xcx1r3 commented on issue #14719: URL: https://github.com/apache/lucene/issues/14719#issuecomment-2914834339 #14726 sure -- 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

Re: [I] Potential resource leakage in WordDictionary#loadMainDataFromFile [lucene]

2025-05-27 Thread via GitHub
jpountz commented on issue #14719: URL: https://github.com/apache/lucene/issues/14719#issuecomment-2913817299 Good catch, would you like 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

Re: [I] Potential resource leakage in WordDictionary#loadMainDataFromFile [lucene]

2025-05-27 Thread via GitHub
xcx1r3 commented on issue #14719: URL: https://github.com/apache/lucene/issues/14719#issuecomment-2911474550 if an exception occur, the close() statement will not be executed, leading to a potential resource leak. ``` private int loadMainDataFromFile(String dctFilePath) throws IOExcept

[I] Potential resource leakage in WordDictionary#loadMainDataFromFile [lucene]

2025-05-26 Thread via GitHub
xcx1r3 opened a new issue, #14719: URL: https://github.com/apache/lucene/issues/14719 ### Description In `org.apache.lucene.analysis.cn.smart.hhmm.WordDictionary#loadMainDataFromFile`, the resouce `DataInputStream dctFile` could be leaked upon exception. It can be fixed by using t