Ignore:
Timestamp:
Mar 29, 2011, 9:09:37 PM (11 years ago)
Author:
jordan
Message:

(trunk libT) safeguard against a minor memory leak if io->sokcet couldn't be opened.

File:
1 edited

Legend:

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

    r12249 r12256  
    716716        tr_netClose( io->session, io->socket );
    717717        io->socket = -1;
     718    }
     719
     720    if( io->event_read != NULL) {
    718721        event_free( io->event_read );
     722        io->event_read = NULL;
     723    }
     724
     725    if( io->event_write != NULL) {
    719726        event_free( io->event_write );
     727        io->event_write = NULL;
    720728    }
    721729
Note: See TracChangeset for help on using the changeset viewer.