Skip to content

Commit cdda656

Browse files
authored
Fix a potential memory leak in LocalTransaction (#1120)
1 parent a89ed40 commit cdda656

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doma-core/src/main/java/org/seasar/doma/jdbc/tx/LocalTransaction.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ protected void endInternal(LocalTransactionContext context, String callerMethodN
415415
*/
416416
protected void release(LocalTransactionContext context, String callerMethodName) {
417417
assertNotNull(context, callerMethodName);
418-
localTxContextHolder.set(null);
418+
localTxContextHolder.remove();
419419
if (!context.hasConnection()) {
420420
return;
421421
}

0 commit comments

Comments
 (0)