Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exceptional resource leaks StreamDBClient.java: 377 #43

Open
StrongestNumber9 opened this issue Jun 24, 2024 · 0 comments
Open

Exceptional resource leaks StreamDBClient.java: 377 #43

StrongestNumber9 opened this issue Jun 24, 2024 · 0 comments
Labels
bug Something isn't working Coverity Issues found by coverity

Comments

@StrongestNumber9
Copy link
Contributor

Describe the bug

 *** CID 1594369:  Exceptional resource leaks  (RESOURCE_LEAK)
/src/main/java/com/teragrep/pth_06/planner/StreamDBClient.java: 377 in com.teragrep.pth_06.planner.StreamDBClient$GetArchivedObjectsFilterTable.create(org.jooq.DSLContext, org.jooq.Condition)()
371             public static final Field<String> stream = DSL.field(DSL.name(tmpTableName, "stream"), String.class);
372     
373             private static final Index hostIndex = DSL.index(DSL.name("cix_host_id_tag"));
374     
375             private static void create(DSLContext ctx, Condition streamdbCondition) {
376                 DropTableStep dropQuery = ctx.dropTemporaryTableIfExists(GetArchivedObjectsFilterTable.FILTER_TABLE);
>>>     CID 1594369:  Exceptional resource leaks  (RESOURCE_LEAK)
>>>     Variable "dropQuery" going out of scope leaks the resource it refers to.
377                 dropQuery.execute();
378     
379                 CreateTableWithDataStep query = ctx.createTemporaryTable(GetArchivedObjectsFilterTable.FILTER_TABLE)
380                         .as(
381                                 select(
382                                         // these are hardcoded for the procedure execution

Software version

3.0.1

@StrongestNumber9 StrongestNumber9 added bug Something isn't working Coverity Issues found by coverity labels Jun 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Coverity Issues found by coverity
Projects
None yet
Development

No branches or pull requests

1 participant