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

fix handshake memory leak reported by MishaS (#442)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.