mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-29 23:23:28 +00:00
server: let the caller of sendSync free the string
Signed-off-by: Francis Bouvier <francis@lightpanda.io>
This commit is contained in:
@@ -214,7 +214,6 @@ pub fn sendAsync(ctx: *Cmd, msg: []const u8) !void {
|
||||
}
|
||||
|
||||
pub fn sendSync(ctx: *Cmd, msg: []const u8) !void {
|
||||
defer ctx.alloc().free(msg);
|
||||
const s = try std.posix.write(ctx.socket, msg);
|
||||
std.log.debug("send sync {d} bytes", .{s});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user