[Ecls-list] Patch proposal for user-homedir-pathname on Windows

Claus Brod claus_brod at cocreate.com
Tue Aug 26 08:21:23 UTC 2008


> thanks for your patch. I have slightly improved it so that it does not
> use C to allocate objects, but rather the ECL functions. This has two
> reasons: first, memory allocated with malloc() is not garbage
> collected and may be leaked when the object is not reachable; second,
> it is much simpler!

In this case, the memory is freed only a few lines below the point of 
allocation, making a leak unlikely. However, the flow of the code is 
indeed simpler this way, so your approach is certainly better!

Thanks a lot!

  Claus





More information about the ecl-devel mailing list