Skip to content

Commit cd89a30

Browse files
committed
fix-memoryleak
1 parent 3b846f8 commit cd89a30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/apache/ibatis/session/SqlSessionManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ public void close() {
333333
try {
334334
sqlSession.close();
335335
} finally {
336-
localSqlSession.set(null);
336+
localSqlSession.remove();
337337
}
338338
}
339339

0 commit comments

Comments
 (0)