lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LUCENE-6611) Potential resource leakage in DirectoryTaxonomyWriter.java
Date Thu, 25 Jun 2015 23:35:04 GMT

    [ https://issues.apache.org/jira/browse/LUCENE-6611?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14602135#comment-14602135
] 

ASF GitHub Bot commented on LUCENE-6611:
----------------------------------------

GitHub user rmp91 opened a pull request:

    https://github.com/apache/lucene-solr/pull/163

    LUCENE-6611: Fixed potential resource leakage

    

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/rmp91/lucene-solr LUCENE-6611

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/lucene-solr/pull/163.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #163
    
----
commit 8e58ae221f86f470a265ec58a9eaabf51d21dc74
Author: Rishabh Patel <rishabh.mahendra.patel@gmail.com>
Date:   2015-06-25T23:32:36Z

    Fixed potential resource leak

----


> Potential resource leakage in DirectoryTaxonomyWriter.java
> ----------------------------------------------------------
>
>                 Key: LUCENE-6611
>                 URL: https://issues.apache.org/jira/browse/LUCENE-6611
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: modules/facet
>    Affects Versions: Trunk
>            Reporter: Rishabh Patel
>            Priority: Minor
>              Labels: github-import
>
> The resource 'in' is closed in an unsafe manner, potentially leading to resource leak.

> It can be fixed by using the try-with-resources construct.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message