From f3d75b3b575d27ab271004f3ee9c2869b8dcc174 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Thu, 2 Oct 2008 16:50:05 +0000 Subject: [PATCH] (rpc) fix rpc server memory leak that snuck in over the past few days' switch from shttpd to evhttp --- libtransmission/rpc-server.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libtransmission/rpc-server.c b/libtransmission/rpc-server.c index 16bc2739d..bba1161d8 100644 --- a/libtransmission/rpc-server.c +++ b/libtransmission/rpc-server.c @@ -352,7 +352,10 @@ handle_rpc( struct evhttp_request * req, evhttp_add_header( req->output_headers, "Content-Type", "application/json; charset=UTF-8" ); evhttp_send_reply( req, HTTP_OK, "OK", buf ); + + /* cleanup */ evbuffer_free( buf ); + tr_free( response ); } static int