Ignore:
Timestamp:
Aug 14, 2008, 2:49:44 PM (13 years ago)
Author:
charles
Message:

(1.3x) backport the memory leak fixes: r6519, r6516, and r6515

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.3x/libtransmission/rpc.c

    r6489 r6523  
    359359    tr_benc * list = tr_bencDictAddList( args_out, "torrents", torrentCount );
    360360    tr_benc * fields;
     361    char * msg = NULL;
    361362
    362363    if( !tr_bencDictFindList( args_in, "fields", &fields ) )
    363         return "no fields specified";
    364 
    365     for( i=0; i<torrentCount; ++i )
     364        msg = "no fields specified";
     365    else for( i=0; i<torrentCount; ++i )
    366366        addInfo( torrents[i], tr_bencListAdd( list ), fields );
    367367
    368368    tr_free( torrents );
    369     return NULL;
     369    return msg;
    370370}
    371371
Note: See TracChangeset for help on using the changeset viewer.