fix memory leak

This commit is contained in:
floscodes 2023-04-30 12:48:05 +02:00
parent b491fd5e68
commit 002d41a5a5

View file

@ -32,6 +32,7 @@ pub const Server = struct {
defer conn.stream.close();
const client_ip = try std.fmt.allocPrint(allocator, "{}", .{conn.address});
defer allocator.free(client_ip);
var buffer = std.ArrayList(u8).init(allocator);
defer buffer.deinit();