This is an automated email from the ASF dual-hosted git repository.
jianliangqi pushed a commit to branch clucene
in repository https://gitbox.apache.org/repos/asf/doris-thirdparty.git
The following commit(s) were added to refs/heads/clucene by this push:
new dd200e10e7 [Fix](index compaction) fix memory leak for index
compaction (#224)
dd200e10e7 is described below
commit dd200e10e72120445bd897f3dcc515702f4dc80b
Author: airborne12 <[email protected]>
AuthorDate: Thu Jun 13 11:32:45 2024 +0800
[Fix](index compaction) fix memory leak for index compaction (#224)
---
src/core/CLucene/index/IndexWriter.cpp | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/core/CLucene/index/IndexWriter.cpp
b/src/core/CLucene/index/IndexWriter.cpp
index 8bc3a93455..a3b30848af 100644
--- a/src/core/CLucene/index/IndexWriter.cpp
+++ b/src/core/CLucene/index/IndexWriter.cpp
@@ -45,7 +45,10 @@
#define FINALLY_CLOSE_OUTPUT(x) \
try { \
- if (x != nullptr) x->close(); \
+ if (x != nullptr) { \
+ x->close(); \
+ _CLDELETE(x) \
+ } \
} catch (...) { \
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]