mirror of https://github.com/apache/lucene.git
SOLR-2793: Be sure to only dec ref if we inc ref'd
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1175646 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
50b31b2a4e
commit
67fe9a6b81
|
@ -1268,7 +1268,7 @@ public final class SolrCore implements SolrInfoMBean {
|
|||
);
|
||||
} catch(Exception e) {
|
||||
// if submit fails, newSearchHolder does not get decref'd
|
||||
if (newSearchHolder != null) newSearchHolder.decref();
|
||||
if (returnSearcher && newSearchHolder != null) newSearchHolder.decref();
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue