Changeset 5155


Ignore:
Timestamp:
Feb 27, 2008, 8:44:46 PM (14 years ago)
Author:
charles
Message:

possibly-better patch for #740.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/torrent.c

    r5153 r5155  
    423423
    424424    err = tr_metainfoParse( setmeInfo, metainfo, handle->tag );
    425 
    426     if( !err && hashExists( handle, setmeInfo->hash ) )
     425    doFree = !err && ( setmeInfo == &tmp );
     426
     427    if( !err && hashExists( handle, setmeInfo->hash ) ) {
    427428        err = TR_EDUPLICATE;
    428 
    429     doFree = ( !err || err==TR_EDUPLICATE ) && ( setmeInfo == &tmp );
     429        doFree = 1;
     430    }
    430431
    431432    if( doFree )
Note: See TracChangeset for help on using the changeset viewer.