In main.zig:
var files: std.ArrayList([]const u8) = .empty;
defer {
for (files.items) |file| allocator.free(file); // <--- Segfault here due to the string being an arg and not something allocated during collectSpecFiles
files.deinit(allocator);
}
try collectSpecFiles(allocator, &files, res);