[Issue 14134] Free of large array does not work

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri Feb 6 12:04:55 PST 2015


https://issues.dlang.org/show_bug.cgi?id=14134

--- Comment #8 from Rainer Schuetze <r.sagitario at gmx.de> ---
Other notes:

- The current version also "works" for memory allocated outside the GC, it just
doesn't free the memory.

- The current version "works" for manually allocated arrays (e.g. Appender).

>So if the code stays as it is, our promoted method of destroying an array is no good. There is no good way to destroy an array except delete.

What is the "proposed method"? Using GC.free(arr.ptr)?

--


More information about the Digitalmars-d-bugs mailing list