fix a couple of more memory leaks that valgrind found

This commit is contained in:
Charles Kerr 2007-08-19 00:18:43 +00:00
parent b66efdf998
commit 82db9f6cc9
2 changed files with 4 additions and 0 deletions

View File

@ -924,6 +924,9 @@ onTrackerResponse( struct evhttp_request * req, void * vtor )
reannounceInterval = isStopped
? -1
: tor->tracker->announceIntervalMsec;
if( bencLoaded )
tr_bencFree( &benc );
}
else
{

View File

@ -90,6 +90,7 @@ readFromPipe( int fd, short eventType UNUSED, void * unused UNUSED )
read( fd, &event, sizeof(struct event*) );
tr_dbg( "read del event from pipe: event is %p", event );
event_del( event );
tr_free( event );
break;
case 'e': /* event_add */