From 8f78b809d1305d85872e045c869ce3c2d4d9dea4 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Sat, 18 Aug 2007 22:35:09 +0000 Subject: [PATCH] fix minor memory leaks introduced in the last couple of days --- libtransmission/metainfo.c | 1 + libtransmission/trevent.c | 1 + 2 files changed, 2 insertions(+) diff --git a/libtransmission/metainfo.c b/libtransmission/metainfo.c index cd4ede96a..f118a07ce 100644 --- a/libtransmission/metainfo.c +++ b/libtransmission/metainfo.c @@ -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; itrackerTiers; ++i ) { for( j=0; jtrackerList[i].count; ++j ) diff --git a/libtransmission/trevent.c b/libtransmission/trevent.c index 94e84e35b..c00b1cc74 100644 --- a/libtransmission/trevent.c +++ b/libtransmission/trevent.c @@ -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: