From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kevin Ryde Newsgroups: gmane.lisp.guile.devel Subject: Re: readlink, getcwd memory leaks Date: Wed, 28 Apr 2004 10:24:18 +1000 Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Message-ID: <87n04x7xvx.fsf@zip.com.au> References: <877jx8hejj.fsf@zip.com.au> <87r7uddnnk.fsf@zagadka.ping.de> <87wu45gfbm.fsf@zip.com.au> <87pt9xc59k.fsf@zagadka.ping.de> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1083111968 25909 80.91.224.253 (28 Apr 2004 00:26:08 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 28 Apr 2004 00:26:08 +0000 (UTC) Cc: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Wed Apr 28 02:26:01 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BIctl-00051a-00 for ; Wed, 28 Apr 2004 02:26:01 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BIctV-0004cy-Rg for guile-devel@m.gmane.org; Tue, 27 Apr 2004 20:25:45 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1BIctI-0004bN-7K for guile-devel@gnu.org; Tue, 27 Apr 2004 20:25:32 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1BIcsk-0004LV-5R for guile-devel@gnu.org; Tue, 27 Apr 2004 20:25:29 -0400 Original-Received: from [61.8.0.84] (helo=mailout1.pacific.net.au) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BIcsi-0004IX-Tp for guile-devel@gnu.org; Tue, 27 Apr 2004 20:24:57 -0400 Original-Received: from mailproxy1.pacific.net.au (mailproxy1.pacific.net.au [61.8.0.86]) by mailout1.pacific.net.au (8.12.3/8.12.3/Debian-6.6) with ESMTP id i3S0Os4u019290; Wed, 28 Apr 2004 10:24:54 +1000 Original-Received: from localhost (ppp24D0.dyn.pacific.net.au [61.8.36.208]) by mailproxy1.pacific.net.au (8.12.3/8.12.3/Debian-6.6) with ESMTP id i3S0OqI1028067; Wed, 28 Apr 2004 10:24:53 +1000 Original-Received: from gg by localhost with local (Exim 3.36 #1 (Debian)) id 1BIcs6-00026v-00; Wed, 28 Apr 2004 10:24:18 +1000 Original-To: Marius Vollmer Mail-Copies-To: never In-Reply-To: <87pt9xc59k.fsf@zagadka.ping.de> (Marius Vollmer's message of "Sun, 25 Apr 2004 01:42:15 +0200") User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3 (gnu/linux) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.devel:3656 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:3656 Actually, one easy approach for some of these mallocing things might be to hold the blocks in an SCM, rather than registering a frame handler thingie. If there's an error throw then the gc will pick up the pieces. scm_make_string or whatever does the trick for malloc, is there some sort of scm_resize_string hiding? Just for internal use (at least initially). _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel