Skip to content

Lambdas sometimes leak  #804

Description

@msullivan
fn main() {
    let x = @0;
    lambda() { log_err *x; };
}

leaks memory.

Interestingly,

fn main() {
    let x = @0;
    let f = lambda() { log_err *x; };
}

does not.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions