Skip to content

Commit

Permalink
Merge pull request #27594 from geoand/#23997-mem
Browse files Browse the repository at this point in the history
Avoid leaking memory in SseParser
  • Loading branch information
FroMage authored Oct 5, 2022
2 parents 6dad454 + 5d485f0 commit b157bb8
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 b157bb8

Please sign in to comment.