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

(cherry picked from commit 5d485f0)
  • Loading branch information
geoand authored and gsmet committed Oct 10, 2022
1 parent bc365d4 commit e2d67d7
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 e2d67d7

Please sign in to comment.