Skip to content

Commit 8c5474b

Browse files
authored
Merge pull request #2508 from Oliverwqcwrw/master-fix-memoryleak-4
[ISSUE #2509]Fix memory leak
2 parents 17292b4 + 2938e83 commit 8c5474b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2009-2021 the original author or authors.
2+
* Copyright 2009-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -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)