mirror of
https://github.com/transmission/transmission
synced 2025-02-01 03:43:43 +00: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:
parent
1bd9dd04b8
commit
f3d75b3b57
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue