Changeset 1210

Show
Ignore:
Timestamp:
04/09/07 01:19:59 (1 year ago)
Author:
oxff
Message:

nepenthes.submit-mwserv: fixed two memory leaks

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • nepenthes/trunk/modules/submit-mwserv/TransferSession.cpp

    r1209 r1210  
    227227bool TransferSession::Exit() 
    228228{ 
     229        if(m_multiHandle) 
     230                curl_multi_remove_handle(m_multiHandle, m_curlHandle); 
     231         
    229232        curl_formfree(m_postInfo); 
    230233        curl_easy_cleanup(m_curlHandle); 
     
    238241        if(m_sample.binary) 
    239242        { 
    240                 delete m_sample.binary; 
     243                delete [] m_sample.binary; 
    241244                m_sample.binary = 0; 
    242245        }