fix memory leak
This commit is contained in:
parent
b491fd5e68
commit
002d41a5a5
1 changed files with 1 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue