mirror of
https://github.com/transmission/transmission.git
synced 2026-05-08 09:39:08 +01:00
(rpc) fix rpc server memory leak that snuck in over the past few days' switch from shttpd to evhttp
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user