Ignore:
Timestamp:
Nov 2, 2007, 8:27:04 PM (15 years ago)
Author:
charles
Message:

fix memory error reported by John_Clay

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/0.9x/libtransmission/fdlimit.c

    r3673 r3694  
    134134    /* create subfolders, if any */
    135135    if( write ) {
    136         char * dir = dirname( tr_strdup( filename ) );
    137         const int val = tr_mkdirp( dir, 0700 );
    138         tr_free( dir );
     136        char * tmp = tr_strdup( filename );
     137        const int val = tr_mkdirp( dirname(tmp), 0700 );
     138        tr_free( tmp );
    139139        if( val )
    140140            return tr_ioErrorFromErrno( );
Note: See TracChangeset for help on using the changeset viewer.