~blainsmith/hare-icmp

ea4577b5e585dbe94b00735bd21d68f91b194d4c — Conrad Hoffmann 3 months ago 18be89f
Fix memory leak

Signed-off-by: Conrad Hoffmann <ch@bitfehler.net>
1 files changed, 1 insertions(+), 0 deletions(-)

M net/icmp/message.ha
M net/icmp/message.ha => net/icmp/message.ha +1 -0
@@ 74,6 74,7 @@ fn checksum(msg: []u8) u16 = {
// Encodes a [[message]] into the [[io::handle]] provided
export fn encode(out: io::handle, in: *message) (size | io::error) = {
	let msg: []u8 = [];
	defer free(msg);
	let sz = 0z;

	match (in.body) {