[Quickfix-developers] Memory leak at Initiator class
Brought to you by:
orenmnero
|
From: Clebson D. <cde...@bm...> - 2006-10-05 13:21:03
|
Hi fellows,
I found a small memory leak in Initiator.cpp, the patch below fixes it.
Cheers,
Clebson
---------------------------------------- cut here
-----------------------------------------------
*** C:\Projects\FIX\source-latest\quickfix\src\C++\Initiator.cpp
Wed Oct 04 11:33:10 2006
--- Initiator.cpp Wed Oct 04 15:53:45 2006
***************
*** 94,99 ****
--- 94,102 ----
for ( i =3D m_sessions.begin(); i !=3D m_sessions.end(); ++i )
delete i->second;
+ if( m_pLogFactory && m_pLog )
+ m_pLogFactory->destroy( m_pLog );
+
QF_STACK_IGNORE_END
}
---------------------------------------- cut here
-----------------------------------------------
|