|
From: | Dirk Herrmann |
Subject: | Re: readlink, getcwd memory leaks |
Date: | Sun, 25 Apr 2004 10:16:30 +0200 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030821 |
Marius Vollmer wrote:
Kevin Ryde <address@hidden> writes: > Marius Vollmer <address@hidden> writes: > >> (There still will be a memory leak when scm_mem2string throws, >> but that is very unlikely...) > > I was thinking about that after Dirk changed scm_gethostbyname. > Looks like a lot of potential places like that, and no fun to try > to tighten them up :-(. Yes. Maybe we should just disallow out-of-memory throws. There is no real point for them: Guile likely can't continue anyway.
Sounds good to me. Let's make it official policy and modify scm_memory_error to abort. (scm_gethostname could then be simplified again...)
Best regards, Dirk
[Prev in Thread] | Current Thread | [Next in Thread] |