aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/bun.js/webcore/streams.zig1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bun.js/webcore/streams.zig b/src/bun.js/webcore/streams.zig
index 49c94967d..827bc25bf 100644
--- a/src/bun.js/webcore/streams.zig
+++ b/src/bun.js/webcore/streams.zig
@@ -2474,6 +2474,7 @@ pub fn HTTPServerWritable(comptime ssl: bool) type {
this.buffer = bun.ByteList.init("");
ByteListPool.push(this.allocator, buffer);
} else {
+ // Don't release this buffer until destroy() is called
this.buffer.len = 0;
}
}