Changeset 6724


Ignore:
Timestamp:
Sep 6, 2008, 3:02:30 AM (13 years ago)
Author:
charles
Message:

get rid of a pointless seek() call

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/utils.c

    r6717 r6724  
    408408        return NULL;
    409409    }
    410     fseek( file, 0, SEEK_SET );
    411410    if( fread( buf, sb.st_size, 1, file ) != 1 )
    412411    {
    413412        tr_err( err_fmt, path, tr_strerror(errno) );
     413        fclose( file );
    414414        free( buf );
    415         fclose( file );
    416415        return NULL;
    417416    }
Note: See TracChangeset for help on using the changeset viewer.