From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: zsh-workers-request@euclid.skiles.gatech.edu Received: from euclid.skiles.gatech.edu (list@euclid.skiles.gatech.edu [130.207.146.50]) by coral.primenet.com.au (8.7.5/8.7.3) with ESMTP id MAA06933 for ; Mon, 11 Nov 1996 12:31:56 +1100 (EST) Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id UAA02829; Sun, 10 Nov 1996 20:27:51 -0500 (EST) Resent-Date: Sun, 10 Nov 1996 20:27:51 -0500 (EST) Sender: hniksic@public.srce.hr To: Zoltan Hidvegi Cc: zsh-workers@math.gatech.edu Subject: Re: Purified zsh-3.0.1 References: <199611110101.CAA02137@hzoli.ppp.cs.elte.hu> X-URL: ftp://gnjilux.cc.fer.hr/pub/unix/util/wget/ X-Attribution: Hrv X-Face: &}4JQk=L;e.~x+|eo]#DGk@x3~ed!.~lZ}YQcYb7f[WL9L'Z*+OyA\nAEL1M(".[qvI#a2E 6WYI5>>e7'@_)3Ol9p|Nn2wNa/;~06jL*B%tTcn/XvhAu7qeES0\|MF%$;sI#yn1+y" From: Hrvoje Niksic Date: 11 Nov 1996 02:27:39 +0100 In-Reply-To: Zoltan Hidvegi's message of Mon, 11 Nov 1996 02:01:38 +0100 (MET) Message-ID: X-Mailer: Red Gnus v0.60/XEmacs 19.14 Resent-Message-ID: <"QXapB.0.4i.M4eXo"@euclid> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/2368 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu Zoltan Hidvegi (hzoli@cs.elte.hu) wrote: > *************** > *** 1787,1792 **** > --- 1790,1797 ---- > pm->flags |= PM_EXPORTED; > if (pm->flags & PM_EXPORTED) > pm->env = addenv(s, u); > + else > + zsfree(u); > } This one is wrong, I'm afraid. Here I get FUM (Freeing Uninitialized Memory), which is *bad*. If I use only the first part of the patch, there are no FUMs, but the leaks seem to persist. :( BTW, after quitting zsh, it seems that a descriptor is in use, which shouldn't be: FIU: file descriptor 10: "/home/srce/hniksic/.zcompctl", O_RDONLY Duplication of file descriptor 5. File info: crwx------ 1 hniksic tty 0 Nov 11 02:25 File position: 1787837 This file descriptor was allocated from: fcntl [libc.so.1] movefd [utils.c:877] source [init.c:781] bin_dot [builtin.c:4726] execbuiltin [builtin.c:185] execcmd [exec.c:1653] Why does .zcompctl stay open (.zcompctl is the name of a file in my home directory that I source from .zshrc)? -- Hrvoje Niksic | Student at FER Zagreb, Croatia --------------------------------+-------------------------------- I'm a Lisp variable -- bind me!