some cleanup and freeing

This commit is contained in:
2025-12-31 02:13:15 +00:00
parent e60a566a7c
commit 0f138e5984
3 changed files with 23 additions and 10 deletions

View File

@@ -206,6 +206,7 @@ pub const Message = union(MessageType) {
// Parse byte count
const byte_count = blk: {
var byte_count_list: std.ArrayList(u8) = try .initCapacity(alloc, 64);
defer byte_count_list.deinit(alloc);
while (in.peekByte()) |byte| {
if (std.ascii.isWhitespace(byte)) {
try expectStreamBytes(in, "\r\n");