Changeset 10203


Ignore:
Timestamp:
Feb 15, 2010, 12:22:18 AM (13 years ago)
Author:
charles
Message:

(trunk libT) fix a potential (but currently unused) code path in tr_torrentNew() that could cause a memory leak. Thanks to Elbandi for pointing this out.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/torrent.c

    r10183 r10203  
    782782        torrentInit( tor, ctor );
    783783    }
    784     else if( setmeError )
     784    else
    785785    {
    786786        if( r == TR_PARSE_DUPLICATE )
    787787            tr_metainfoFree( &tmpInfo );
    788788
    789         *setmeError = r;
     789        if( setmeError )
     790            *setmeError = r;
    790791    }
    791792
Note: See TracChangeset for help on using the changeset viewer.