Changeset 3682


Ignore:
Timestamp:
Nov 1, 2007, 6:41:13 PM (15 years ago)
Author:
charles
Message:

fix handshake memory leak reported by MishaS (#442)

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEWS

    r3678 r3682  
    88- All Platforms:
    99   + Fix 0.90 data corruption bugs.
     10   + Fix 0.90 small memory leaks.
    1011- OS X:
    1112   + Leopard: Fix bug with typing values in Inspector->Options
     
    1516   + Fix localization error in torrent inspector's dates
    1617   
    17 
    18180.91 (2007/10/28)
    1919- All Platforms:
  • trunk/libtransmission/handshake.c

    r3606 r3682  
    811811    int i;
    812812    const size_t needlen = handshake->ia_len;
    813     struct evbuffer * outbuf = evbuffer_new( );
     813    struct evbuffer * outbuf;
    814814    uint32_t crypto_select;
    815815
     
    823823dbgmsg( handshake, "parseHandshake returned %d", i );
    824824    if( i != HANDSHAKE_OK ) {
    825         evbuffer_free( outbuf );
    826825        tr_handshakeDone( handshake, FALSE );
    827826        return READ_DONE;
     
    833832
    834833    tr_cryptoEncryptInit( handshake->crypto );
     834    outbuf = evbuffer_new( );
    835835
    836836dbgmsg( handshake, "sending vc" );
Note: See TracChangeset for help on using the changeset viewer.