Skip to content

Commit

Permalink
Avoid leaking memory in SseParser
Browse files Browse the repository at this point in the history
Relates to: quarkusio#23997
  • Loading branch information
geoand authored and igorregis committed Oct 17, 2022
1 parent 83cbc45 commit 1781ee7
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ public void setSseContentTypeHeader(String sseContentTypeHeader) {
@Override
public void handle(Buffer event) {
byte[] newBytes = event.getBytes();
event.getByteBuf().release();
// check if we have partial data remaining
if (bytes != null) {
// concat old and new data
Expand Down

0 comments on commit 1781ee7

Please sign in to comment.