Changeset 10157


Ignore:
Timestamp:
Feb 10, 2010, 5:27:14 AM (12 years ago)
Author:
charles
Message:

(trunk libT) Yippie, plug a small memory leak reported by valgrind!

Location:
trunk/libtransmission
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/torrent-magnet.c

    r10109 r10157  
    201201                {
    202202                    tr_bool hasInfo;
    203                     tr_benc * tmp;
    204203
    205204                    /* remove any old .torrent and .resume files */
     
    208207
    209208                    dbgmsg( tor, "Saving completed metadata to \"%s\"", path );
    210                     assert( !tr_bencDictFindDict( &newMetainfo, "info", &tmp ) );
    211209                    tr_bencMergeDicts( tr_bencDictAddDict( &newMetainfo, "info", 0 ), &infoDict );
    212210
  • trunk/libtransmission/torrent.c

    r10084 r10157  
    766766    tr_parse_result r;
    767767    tr_torrent * tor = NULL;
    768     tr_session * session = tr_ctorGetSession( ctor );
    769768
    770769    assert( ctor != NULL );
    771     assert( tr_isSession( session ) );
     770    assert( tr_isSession( tr_ctorGetSession( ctor ) ) );
    772771
    773772    r = torrentParseImpl( ctor, &tmpInfo, &hasInfo, &off, &len );
  • trunk/libtransmission/web.c

    r10156 r10157  
    351351
    352352            task->slist = curl_slist_append( NULL, host );
    353             task->slist = curl_slist_append( task->slist, tr_strdup_printf( "Accept:" ) );
     353            task->slist = curl_slist_append( task->slist, "Accept:" );
    354354            curl_easy_setopt( e, CURLOPT_HTTPHEADER, task->slist );
    355355            tr_free( host );
Note: See TracChangeset for help on using the changeset viewer.