From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13672 invoked from network); 18 Mar 2004 11:35:10 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 18 Mar 2004 11:35:10 -0000 Received: (qmail 9152 invoked by alias); 18 Mar 2004 11:34:51 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 19655 Received: (qmail 9120 invoked from network); 18 Mar 2004 11:34:50 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 18 Mar 2004 11:34:50 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [62.189.58.19] by sunsite.dk (MessageWall 1.0.8) with SMTP; 18 Mar 2004 11:34:50 -0000 Received: from MAILSWEEPER01.csr.com (mailhost1.csr.com [62.189.183.235]) by lhuumrelay3.lnd.ops.eu.uu.net (8.11.0/8.11.0) with ESMTP id i2IBYnv21023 for ; Thu, 18 Mar 2004 11:34:49 GMT Received: from EXCHANGE02.csr.com (unverified [192.168.137.45]) by MAILSWEEPER01.csr.com (Content Technologies SMTPRS 4.3.12) with ESMTP id for ; Thu, 18 Mar 2004 11:34:27 +0000 Received: from csr.com ([192.168.144.127]) by EXCHANGE02.csr.com with Microsoft SMTPSVC(5.0.2195.6713); Thu, 18 Mar 2004 11:37:07 +0000 To: zw Subject: Re: memory leaks report In-reply-to: "Felix Rosencrantz"'s message of "Tue, 09 Mar 2004 23:46:09 PST." <20040310074609.94301.qmail@web10406.mail.yahoo.com> Date: Thu, 18 Mar 2004 11:34:49 +0000 Message-ID: <17961.1079609689@csr.com> From: Peter Stephenson X-OriginalArrivalTime: 18 Mar 2004 11:37:07.0031 (UTC) FILETIME=[579B2E70:01C40CDD] Felix Rosencrantz wrote: > Test B02typeset: > 28 bytes in 4 blocks are definitely lost in loss record 1 of 11 > at malloc (vg_replace_malloc.c:153) > by zalloc (mem.c:490) > by ztrdup (string.c:52) > by bin_typeset (builtin.c:2264) Think I've finally found this one. Index: Src/params.c =================================================================== RCS file: /cvsroot/zsh/zsh/Src/params.c,v retrieving revision 1.77 diff -u -r1.77 params.c --- Src/params.c 8 Mar 2004 11:01:19 -0000 1.77 +++ Src/params.c 18 Mar 2004 11:23:37 -0000 @@ -2673,6 +2673,7 @@ zfree(pm->u.data, sizeof(struct tieddata)); /* paranoia -- shouldn't need these, but in case we reuse the struct... */ pm->u.data = NULL; + zsfree(pm->ename); pm->flags &= ~PM_TIED; } -- Peter Stephenson Software Engineer CSR Ltd., Science Park, Milton Road, Cambridge, CB4 0WH, UK Tel: +44 (0)1223 692070 ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com **********************************************************************