diff --git a/google-cloud-clients/google-cloud-storage/src/main/java/com/google/cloud/storage/spi/v1/HttpStorageRpc.java b/google-cloud-clients/google-cloud-storage/src/main/java/com/google/cloud/storage/spi/v1/HttpStorageRpc.java index 5653e6a42d4b..d579f4303626 100644 --- a/google-cloud-clients/google-cloud-storage/src/main/java/com/google/cloud/storage/spi/v1/HttpStorageRpc.java +++ b/google-cloud-clients/google-cloud-storage/src/main/java/com/google/cloud/storage/spi/v1/HttpStorageRpc.java @@ -686,6 +686,7 @@ public void write(String uploadId, byte[] toWrite, int toWriteOffset, long destO response = httpRequest.execute(); code = response.getStatusCode(); message = response.getStatusMessage(); + response.getContent().close(); } catch (HttpResponseException ex) { exception = ex; code = ex.getStatusCode();