Jan-Henrik,
I'm getting reports of small leakage when I follow this pattern:
c = ConnectionPool_getConnection(pool); TRY // prepare and bind and execute statement, or // run or execute a query, with or without transactions CATCH(SQLException) // log exception // set volatile boolean result flag FINALLY Connection_close(c); END_TRY;
The try/accept block varies; but in all cases the connection leaks.
I'm attaching a stripped valgrind log which was posted to my bug-tracker.
So I wonder, is there something in the try...finally...end_try block I need to modify to prevent this?