Either I'm confused or the gc is

H. S. Teoh hsteoh at quickfur.ath.cx
Thu Oct 22 23:07:28 UTC 2020


On Thu, Oct 22, 2020 at 10:05:42PM +0000, user1234 via Digitalmars-d wrote:
[...]
> As you've been said in one of the first answer this must be because D
> GC sees a pointer allocated with malloc, and this pointer looks orphan
> to the GC as it has no root.

The GC does not collect objects allocated by malloc. (That would not
make any sense, since if you allocated it with malloc, obviously you
intend to deallocate it with free!)


T

-- 
I see that you JS got Bach.


More information about the Digitalmars-d mailing list