I am trying to understand sentinel terminated many item pointers and am running into an issue when trying to free the memory allocated with allocSentinel.
error: type '[*:0]u8' does not support field access
if (slice.len == 0 and std.meta.sentinel(Slice) == null) return &[0]u8{};
The code otherwise compiles if I removed the free statement, but then it creates a memory leak. I have tried to read through documentation but have not been able to make sense of it.