Can't free sentinel terminated many item pointer

defer allocator.free(std.mem.span(str));

free needs a slice, also take a look at:

1 Like