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()); }