Skip to content

Commit

Permalink
[Fix](index compaction) fix memory leak for index compaction (#224) (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
airborne12 committed Jun 19, 2024
1 parent a28adab commit 5fdeed2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/core/CLucene/index/IndexWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,10 @@

#define FINALLY_CLOSE_OUTPUT(x) \
try { \
if (x != nullptr) x->close(); \
if (x != nullptr) { \
x->close(); \
_CLDELETE(x) \
} \
} catch (...) { \
}

Expand Down

0 comments on commit 5fdeed2

Please sign in to comment.