aeb445b2ea
As a child of the condition, when the body encounters a ret or break it incorrectly re-runs the cleanups of the condition.
8 lines
131 B
Rust
8 lines
131 B
Rust
// Issue 1974
|
|
// Don't double free the condition allocation
|
|
fn main() {
|
|
let s = "hej";
|
|
while s != "" {
|
|
ret;
|
|
}
|
|
} |