[ https://issues.apache.org/jira/browse/JENA-2303?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17504445#comment-17504445 ]
ASF subversion and git services commented on JENA-2303: ------------------------------------------------------- Commit b9c6b2b99553af45d3879a78d59f8fd8573fd56c in jena's branch refs/heads/main from Andy Seaborne [ https://gitbox.apache.org/repos/asf?p=jena.git;h=b9c6b2b ] JENA-2303: Getters for components > Resource leak in RDFConnectionAdapter > ------------------------------------- > > Key: JENA-2303 > URL: https://issues.apache.org/jira/browse/JENA-2303 > Project: Apache Jena > Issue Type: Bug > Components: ARQ > Affects Versions: Jena 4.5.0 > Reporter: Claus Stadler > Assignee: Andy Seaborne > Priority: Minor > > * There is a resource leak in RDFConnectionAdapter: > {code:java} > public class RDFConnectionAdapter implements RDFConnection { > @Override > public QueryExecution query(Query query) { > QueryExec queryExec = get().query(query); // This line leaks resources > return adapt(get().query(query)); > } > } > {code} > * Also, please make access to the underlying links in RDFLinkModular public > in order to reduce the amount of re-wrapping needed when e.g. only only > wrapping the LinkSparqlQuery with custom query rewriting. -- This message was sent by Atlassian Jira (v8.20.1#820001)