Skip to content

Commit 0d8b266

Browse files
authored
Fix a potential memory leak in LocalTransaction (#1122)
1 parent cdda656 commit 0d8b266

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
@@ -216,7 +216,7 @@ public LocalTransactionContext suspend() {
216216
if (!isActiveInternal(context)) {
217217
throw new TransactionNotYetBegunException(Message.DOMA2046);
218218
}
219-
localTxContextHolder.set(null);
219+
localTxContextHolder.remove();
220220
return context;
221221
}
222222

0 commit comments

Comments
 (0)