October 18, 2020 [Issue 21324] New: @live not detecting overwrite of Owner without disposing of previous owned value | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=21324 Issue ID: 21324 Summary: @live not detecting overwrite of Owner without disposing of previous owned value Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: normal Priority: P1 Component: dmd Assignee: nobody@puremagic.com Reporter: bugzilla@digitalmars.com int* malloc(); void free(int*); @live void test() { int* p = malloc(); p = malloc(); // does not detect reassignment of owner free(p); } -- |
Copyright © 1999-2021 by the D Language Foundation