Skip to content

Segfault when passing in filepaths as CLI args #24

Description

@bradcypert

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);

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions