Skip to content

Move-mode arguments are not unwound correctly #939

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
brson opened this issue Sep 16, 2011 · 0 comments
Closed

Move-mode arguments are not unwound correctly #939

brson opened this issue Sep 16, 2011 · 0 comments
Assignees

Comments

@brson
Copy link
Contributor

brson commented Sep 16, 2011

fn f(-a: @int) {
    fail;
}

fn main() {
    let a = @0;
    f(a);
}

a is double-freed because the cleanup revocations don't take effect until after the function is called

@ghost ghost assigned brson Sep 16, 2011
@brson brson closed this as completed in 1002623 Sep 16, 2011
ZuseZ4 pushed a commit to EnzymeAD/rust that referenced this issue Mar 7, 2023
* Improve global metadata handling wrt llvm.used

* Move alloc to presllvm
coastalwhite pushed a commit to coastalwhite/rust that referenced this issue Aug 5, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant