Changeset 5634


Ignore:
Timestamp:
Apr 17, 2008, 6:45:02 PM (14 years ago)
Author:
charles
Message:

fix minor memory leak in tr_close()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/session.c

    r5613 r5634  
    164164        tr_wait( 50 );
    165165
    166     h->tag = strdup( tag );
    167     if( !h->tag ) {
    168         free( h );
    169         return NULL;
    170     }
    171 
     166    h->tag = tr_strdup( tag );
    172167    h->peerMgr = tr_peerMgrNew( h );
    173168
     
    437432    tr_fdClose( );
    438433    tr_lockFree( h->lock );
    439     free( h->tag );
     434    tr_free( h->tag );
     435    tr_free( h->configDir );
     436    tr_free( h->resumeDir );
     437    tr_free( h->torrentDir );
    440438    free( h );
    441439}
Note: See TracChangeset for help on using the changeset viewer.