On Wed, 2007-05-23 at 17:52 +0900, Atsushi SAKAI wrote: > Hi, > > I also agree garbage collection. > Anyway, this kind of problem should be checked by valgrind. The only way to test code paths like this is to set up a test harness which will re-run the code over and over, with a malloc() implementation that will fail at random points. Cheers, Mark.