(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
+3
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