[
https://issues.apache.org/jira/browse/JENA-2303?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17504446#comment-17504446
]
ASF subversion and git services commented on JENA-2303:
-------------------------------------------------------
Commit 0fbe5e50b1e2656d78b741e8d96d7faf00c214e6 in jena's branch
refs/heads/main from Andy Seaborne
[ https://gitbox.apache.org/repos/asf?p=jena.git;h=0fbe5e5 ]
Merge pull request #1219 from afs/misc
JENA-2303: Don't allocated an RDFLink twice
> 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)