Changeset 767 for trunk/libtransmission


Ignore:
Timestamp:
Aug 13, 2006, 9:24:23 PM (15 years ago)
Author:
livings124
Message:

Free even more memory.

Location:
trunk/libtransmission
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/transmission.c

    r766 r767  
    507507}
    508508
    509 void tr_torrentPeersFree( tr_peer_stat_t * peers )
    510 {
     509void tr_torrentPeersFree( tr_peer_stat_t * peers, int peerCount )
     510{
     511    int i;
     512    for (i = 0; i < peerCount; i++)
     513        free(peers[i].client);
     514
    511515    free( peers );
    512516}
  • trunk/libtransmission/transmission.h

    r766 r767  
    216216typedef struct tr_peer_stat_s tr_peer_stat_t;
    217217tr_peer_stat_t * tr_torrentPeers( tr_torrent_t *, int * peerCount );
    218 void tr_torrentPeersFree( tr_peer_stat_t * );
     218void tr_torrentPeersFree( tr_peer_stat_t *, int peerCount );
    219219
    220220/***********************************************************************
Note: See TracChangeset for help on using the changeset viewer.