From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14200 invoked from network); 24 Jan 2000 13:53:56 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 24 Jan 2000 13:53:56 -0000 Received: (qmail 29304 invoked by alias); 24 Jan 2000 13:53:49 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9418 Received: (qmail 29296 invoked from network); 24 Jan 2000 13:53:48 -0000 Date: Mon, 24 Jan 2000 14:53:42 +0100 (MET) Message-Id: <200001241353.OAA12217@beta.informatik.hu-berlin.de> From: Sven Wischnowsky To: zsh-workers@sunsite.auc.dk Subject: parameter structs still alive Having had a look at the output of mem again, I noticed that every completion adds several blocks of 96 bytes (on a 64 Bit machine). These are struct pm's for the special parameters that don't get freed. When I wrote the new completion stuff I copied the parameter stuff from zle_params.c and never really understood why the zleunsetfn() was written the way it was written. The `if(ext) ...' test together with the fact that the parameters have the PM_SPECIAL flag have the effect that the struct are not freed. Peter: which is the right way to do such things? Removing the PM_SPECIAL flag in zleunsetfn() and compunsetfn() at least makes the structs be freed, but that can't be the right solution... Bye Sven -- Sven Wischnowsky wischnow@informatik.hu-berlin.de