Changeset 3684


Ignore:
Timestamp:
Nov 1, 2007, 6:44:37 PM (14 years ago)
Author:
charles
Message:

fix possible benc leak reported by MishaS (#441)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/bencode.c

    r3105 r3684  
    468468                    const int index = indices[i].index;
    469469                    if( tr_bencSave( val->val.l.vals + index,     buf, used, max ) ||
    470                         tr_bencSave( val->val.l.vals + index + 1, buf, used, max ) )
     470                        tr_bencSave( val->val.l.vals + index + 1, buf, used, max ) ) {
     471                        tr_free( indices );
    471472                        return 1;
     473                    }
    472474                }
    473475                tr_free( indices );
Note: See TracChangeset for help on using the changeset viewer.