1
0
Fork 0
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:
Charles Kerr 2008-10-02 16:50:05 +00:00
parent 1bd9dd04b8
commit f3d75b3b57

View file

@ -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