Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#190 CTOR_DTOR_LEAK in FSDirectory

open
nobody
None
5
2010-11-30
2010-11-30
Juuso Pakarinen
No

Code analyser tool runned against QT including CLucene reveiled CTOR_DTOR_LEAK in FSDirectory::FSIndexInput::SharedHandle::~SharedHandle()
Fix proposal:
diff --git a/src/3rdparty/clucene/src/CLucene/store/FSDirectory.cpp b/src/3rdparty/clucene/src/CLucene/store/FSDirectory.cpp
index 5f96e91..ce53585 100644
--- a/src/3rdparty/clucene/src/CLucene/store/FSDirectory.cpp
+++ b/src/3rdparty/clucene/src/CLucene/store/FSDirectory.cpp
@@ -247,6 +247,7 @@ FSDirectory::FSIndexInput::SharedHandle::~SharedHandle()
{
if (fhandle.isOpen())
fhandle.close();
+ delete THIS_LOCK;
}

Discussion

  • CLucene's HEAD doesn't contain this code. Can you please run your test again with the our latest code and see if the report is the same?

    This may also be related to QT - like in the other ticket you posted.