how to get log in ISA server 2006 C++ SDK without memory leak
<p>i wrote a method that get the all session log info with  isa server 2006   SDK</p>

<p>the main code is below and i have to use this code in do-while() to get all sessions information but this line make leak memory .  </p>

<p>at the end i released the pointer of FPCLib::IFPCLogEntryptr but mem leak is still exist .
:( 
could you please help me this problem .</p>

<pre><code>FPCLib::IFPCLogEntryptr =  FPCLib::IFPCLogContentPtr::Item(index)         
.
. // reading informationsuch as ip, url , byte send , ....
.
FPCLib::IFPCLogEntryptr.release();



hr = LOGFilter.CreateInstance("FPC.FPCFilterExpressions");                 
hr = LOGFilter-&gt;put_FilterType(FPCLib::FpcFilterType::fpcNoFilterType);                                            
FPClogviewer = FPCArray-&gt;LogViewer;                       
LOGContent   = FPClogviewer-&gt;GetLogContentOnline();                                                      
LOGContent-&gt;ExecuteQuery(LOGFilter,EXECUTEROWCOUNT);                                                  
FPCLib::IFPCLogEntryPtr FPCLogEntry;                                       
_bstr_t ClientIP;          
int  index= 0;                                             
do                                  
{                              
    index ++ ;              
    FPCLogEntry = LOGContent-&gt;Item(_variant_t(index));       
    ClientIP = FPCLogEntry-&gt;ClientIP;   
    FPCLogEntry.Release();  
}
while (1)
</code></pre>
