Ignore:
Timestamp:
Sep 28, 2007, 2:27:56 PM (14 years ago)
Author:
charles
Message:

fix a couple of memory corruption errors while trying to track down tiennou's report on peer-msgs.c:pulse() -> inout.c:163 assertion failure.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/list.c

    r3105 r3217  
    3232
    3333void
    34 tr_list_free( tr_list** list )
     34tr_list_free( tr_list** list, TrListForeachFunc data_free_func )
    3535{
    3636    while( *list )
    3737    {
    38         tr_list * node = *list;
     38        tr_list *node = *list;
    3939        *list = (*list)->next;
     40        if( data_free_func != NULL )
     41            data_free_func( node->data );
    4042        node_free( node );
    4143    }
Note: See TracChangeset for help on using the changeset viewer.