Changeset 3681


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

fix handshake memory leak reported by MishaS (#442)

Location:
branches/0.9x
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/0.9x/NEWS

    r3677 r3681  
    44- All Platforms:
    55   + Fix 0.90 data corruption bugs.
     6   + Fix 0.90 small memory leaks.
    67- OS X:
    78   + Leopard: Fix bug with typing values in Inspector->Options
  • branches/0.9x/libtransmission/handshake.c

    r3605 r3681  
    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.