Fix memory leak in reactive multipart parser

This commit is contained in:
Brian Clozel
2017-09-22 17:03:38 +02:00
parent 4fbf86e5ce
commit 60f47f4489

View File

@@ -139,6 +139,9 @@ public class SynchronossPartHttpMessageReader implements HttpMessageReader<Part>
catch (IOException ex) {
listener.onError("Exception thrown providing input to the parser", ex);
}
finally {
DataBufferUtils.release(buffer);
}
}, (ex) -> {
try {
listener.onError("Request body input error", ex);