Fix buffer leak in MultipartParser

This change fixes a buffer leak when the MultipartParser is encountering
a body DataBuffer that only contains a boundary.

Closes gh-33094
This commit is contained in:
Simon Baslé 2024-08-01 16:28:50 +02:00
parent 850a0de1b0
commit 722dcae1b1
1 changed files with 1 additions and 0 deletions

View File

@ -557,6 +557,7 @@ final class MultipartParser extends BaseSubscriber<DataBuffer> {
}
else /* if (len == 0) */ {
// buffer starts with complete delimiter, flush out the previous buffers
DataBufferUtils.release(boundaryBuffer);
flush();
}