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
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
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
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
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
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