Changeset 11605


Ignore:
Timestamp:
Dec 29, 2010, 9:00:07 PM (12 years ago)
Author:
charles
Message:

(trunk libT) #3860 "memory leak in torrentCallScript" -- patched.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/torrent.c

    r11599 r11605  
    19271927    if( script && *script )
    19281928    {
     1929        int i;
    19291930        char * cmd[] = { tr_strdup( script ), NULL };
    19301931        char * env[] = {
     
    19451946            _exit( 0 );
    19461947        }
     1948
     1949        for( i=0; cmd[i]; ++i ) tr_free( cmd[i] );
     1950        for( i=0; env[i]; ++i ) tr_free( env[i] );
    19471951    }
    19481952}
Note: See TracChangeset for help on using the changeset viewer.