mirror of
https://github.com/transmission/transmission
synced 2025-02-07 23:14:41 +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",
|
evhttp_add_header( req->output_headers, "Content-Type",
|
||||||
"application/json; charset=UTF-8" );
|
"application/json; charset=UTF-8" );
|
||||||
evhttp_send_reply( req, HTTP_OK, "OK", buf );
|
evhttp_send_reply( req, HTTP_OK, "OK", buf );
|
||||||
|
|
||||||
|
/* cleanup */
|
||||||
evbuffer_free( buf );
|
evbuffer_free( buf );
|
||||||
|
tr_free( response );
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
|
Loading…
Reference in a new issue