From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4627 invoked from network); 1 Jun 2000 05:46:22 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 1 Jun 2000 05:46:22 -0000 Received: (qmail 9614 invoked by alias); 1 Jun 2000 05:46:15 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 11703 Received: (qmail 9606 invoked from network); 1 Jun 2000 05:46:13 -0000 From: "Bart Schaefer" Message-Id: <1000601054553.ZM29480@candle.brasslantern.com> Date: Thu, 1 Jun 2000 05:45:52 +0000 In-Reply-To: <20000601032714.13056.qmail@web1303.mail.yahoo.com> Comments: In reply to Felix Rosencrantz "PATCH: Memorey leak with PS4 usage." (May 31, 8:27pm) References: <20000601032714.13056.qmail@web1303.mail.yahoo.com> X-Mailer: Z-Mail (5.0.0 30July97) To: Felix Rosencrantz , zsh-workers Subject: Re: PATCH: Memorey leak with PS4 usage. MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On May 31, 8:27pm, Felix Rosencrantz wrote: } Subject: PATCH: Memorey leak with PS4 usage. } } There seems to be a memory leak issue with the use of promptexpand. } I've included a patch for utils.c. What leads you to this conclusion? dupstring() allocates off zsh's internal heap. Freeing a pointer off the heap is a Bad Thing. The heap is allocated and freed in large chunks that zsh subdivides as necessary. -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net