Changeset 3499


Ignore:
Timestamp:
Oct 22, 2007, 2:15:16 PM (15 years ago)
Author:
charles
Message:

fix some memory leaks reported by valgrind.

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/conf.c

    r3385 r3499  
    133133cf_lock( char ** errstr )
    134134{
    135     const char * path = getLockFilename( );
     135    char * path = getLockFilename( );
    136136    int fd = lockfile( path, errstr );
    137137    if( fd >= 0 )
    138138        gl_lockpath = g_strdup( path );
    139139    g_atexit( cf_removelocks );
     140    g_free( path );
    140141    return fd >= 0;
    141142}
  • trunk/libtransmission/handshake.c

    r3462 r3499  
    819819dbgmsg( handshake, "parseHandshake returned %d", i );
    820820    if( i != HANDSHAKE_OK ) {
     821        evbuffer_free( outbuf );
    821822        tr_handshakeDone( handshake, FALSE );
    822823        return READ_DONE;
  • trunk/libtransmission/peer-msgs.c

    r3473 r3499  
    16431643    m->peerAllowedPieces = NULL;
    16441644    m->clientAllowedPieces = NULL;
    1645     setme = tr_publisherSubscribe( m->publisher, func, userData );
     1645    *setme = tr_publisherSubscribe( m->publisher, func, userData );
    16461646   
    16471647    if ( tr_peerIoSupportsFEXT( m->io ) )
     
    17451745    return tr_bitfieldHas( peer->clientAllowedPieces, index );
    17461746}
    1747 
  • trunk/libtransmission/tracker.c

    r3479 r3499  
    709709
    710710    t = findTrackerFromHash( torrent_hash );
     711    tr_free( torrent_hash );
    711712    if( t == NULL ) /* tracker has been closed */
    712713        return;
Note: See TracChangeset for help on using the changeset viewer.