From 133c3f4d2618dddc45a24528180c05d88717f18b Mon Sep 17 00:00:00 2001 From: Enrico Del Fante Date: Fri, 17 Jan 2025 12:34:38 +0100 Subject: [PATCH] fix builder http leak --- .../ethereum/executionclient/rest/ResponseHandlerVoid.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ethereum/executionclient/src/main/java/tech/pegasys/teku/ethereum/executionclient/rest/ResponseHandlerVoid.java b/ethereum/executionclient/src/main/java/tech/pegasys/teku/ethereum/executionclient/rest/ResponseHandlerVoid.java index eeab59c4eca..1c1dcc3d300 100644 --- a/ethereum/executionclient/src/main/java/tech/pegasys/teku/ethereum/executionclient/rest/ResponseHandlerVoid.java +++ b/ethereum/executionclient/src/main/java/tech/pegasys/teku/ethereum/executionclient/rest/ResponseHandlerVoid.java @@ -31,6 +31,9 @@ void handleResponse(final Request request, final okhttp3.Response response) { if (handleResponseError(request, response, futureResponse)) { return; } + if (response.body() != null) { + response.body().close(); + } futureResponse.complete(Response.fromNullPayload()); }