Closed
Description
The following program leaks c
from main
.
fn start(chan[chan[str]] c) {
let port[str] p;
p = port();
c <| chan(p);
}
fn main() {
let port[chan[str]] p = port();
spawn start(chan(p));
p |> c;
auto c;
}
Interestingly, if you move the auto c;
line above p |> c
then the program works correctly.
Metadata
Metadata
Assignees
Labels
No labels