Changeset 7623


Ignore:
Timestamp:
Jan 6, 2009, 12:24:44 AM (12 years ago)
Author:
charles
Message:

(trunk libT) two bugfixes in one: (1) fix leaking tr_handshake objects reported by BentMyWookie? (2) fix yet another permutation of the tr_isBandwidth() assertion failure -- maybe the last one? -- reported by Waldorf

Location:
trunk/libtransmission
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/handshake.c

    r7619 r7623  
    10921092}
    10931093
    1094 void
     1094static void
    10951095tr_handshakeFree( tr_handshake * handshake )
    10961096{
     
    11111111
    11121112    success = fireDoneFunc( handshake, isOK );
     1113
     1114    tr_handshakeFree( handshake );   
    11131115
    11141116    return success ? READ_LATER : READ_ERR;
  • trunk/libtransmission/handshake.h

    r7456 r7623  
    3939                                            tr_port                    * port );
    4040
    41 void                   tr_handshakeFree( tr_handshake * handshake );
    42 
    4341void                   tr_handshakeAbort( tr_handshake * handshake );
    4442
  • trunk/libtransmission/peer-mgr.c

    r7622 r7623  
    12691269    }
    12701270
    1271     if( !success )
    1272         tr_handshakeFree( handshake );
    1273 
    12741271    if( t )
    12751272        torrentUnlock( t );
Note: See TracChangeset for help on using the changeset viewer.