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
1 changed files with 3 additions and 0 deletions

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