fix minor memory leaks introduced in the last couple of days
This commit is contained in:
parent
f6973227ac
commit
8f78b809d1
|
@ -313,6 +313,7 @@ void tr_metainfoFree( tr_info_t * inf )
|
|||
|
||||
tr_free( inf->pieces );
|
||||
tr_free( inf->files );
|
||||
tr_free( inf->primaryAddress );
|
||||
|
||||
for( i=0; i<inf->trackerTiers; ++i ) {
|
||||
for( j=0; j<inf->trackerList[i].count; ++j )
|
||||
|
|
|
@ -106,6 +106,7 @@ readFromPipe( int fd, short eventType UNUSED, void * unused UNUSED )
|
|||
read( fd, &uri, sizeof(char*) );
|
||||
tr_dbg( "read http req from pipe: req.cb_arg is %p", req->cb_arg );
|
||||
evhttp_make_request( evcon, req, type, uri );
|
||||
tr_free( uri );
|
||||
break;
|
||||
|
||||
default:
|
||||
|
|
Loading…
Reference in New Issue