[Issue 4358] Potential Memory Leaks in std.file.read() ?

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jun 22 08:05:11 PDT 2010


http://d.puremagic.com/issues/show_bug.cgi?id=4358


Leandro Lucarella <llucax at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |llucax at gmail.com


--- Comment #5 from Leandro Lucarella <llucax at gmail.com> 2010-06-22 08:05:07 PDT ---
(In reply to comment #3)
> Most likely, the GC _is_ working correctly. It's a conservative GC, and it
> treats integers, floats, random binary data the same as actual pointers.

This is false. The GC only treats void[] as a potential source of pointers,
which makes sense, really. int[], float[], char[], byte[] are *NOT* scanned for
pointers. For a binary buffer that doesn't have pointers in it, you should
probably use ubyte[]. If std.file.read() return void[], I'd say that
std.file.read() is broken.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list