Bug 21324 – @live not detecting overwrite of Owner without disposing of previous owned value
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2020-10-18T07:42:31Z
Last change time
2022-03-25T20:15:17Z
Keywords
live, pull
Assigned to
No Owner
Creator
Walter Bright
Comments
Comment #0 by bugzilla — 2020-10-18T07:42:31Z
int* malloc();
void free(int*);
@live void test()
{
int* p = malloc();
p = malloc(); // does not detect reassignment of owner
free(p);
}
Comment #1 by dlang-bot — 2020-10-18T07:48:30Z
@WalterBright created dlang/dmd pull request #11881 "fix Issue 21324 - @live not detecting overwrite of Owner without disp…" fixing this issue:
- fix Issue 21324 - @live not detecting overwrite of Owner without disposing of previous owned value
https://github.com/dlang/dmd/pull/11881
Comment #2 by dlang-bot — 2022-03-25T20:15:17Z
dlang/dmd pull request #11881 "fix Issue 21324 - @live not detecting overwrite of Owner without disp…" was merged into master:
- b5b08e75ce890b59570e6059143ffe8634fec2f7 by Walter Bright:
fix Issue 21324 - @live not detecting overwrite of Owner without disposing of previous owned value
https://github.com/dlang/dmd/pull/11881