Changeset 11803


Ignore:
Timestamp:
Feb 1, 2011, 5:12:20 PM (11 years ago)
Author:
jordan
Message:

(trunk libT) #3836 "libevent 2 support" -- fix minor memory leak.

tr_peerIoReconnect() was calling event_del() rather than event_free() on its io.event_read and io.event_write fields, causing those fields to be leaked. This behavior is new with libevent 2 support and doesn't affect transmission 2.1x or older.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/peer-io.c

    r11783 r11803  
    643643        tr_netClose( session, io->socket );
    644644
    645     event_del( io->event_read );
    646     event_del( io->event_write );
     645    event_free( io->event_read );
     646    event_free( io->event_write );
    647647    io->socket = tr_netOpenPeerSocket( session, &io->addr, io->port, io->isSeed );
    648648    io->event_read = event_new( session->event_base, io->socket, EV_READ, event_read_cb, io );
Note: See TracChangeset for help on using the changeset viewer.