Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: Memorey leak with PS4 usage.
- X-seq: zsh-workers 11700
- From: Felix Rosencrantz <f_rosencrantz@xxxxxxxxx>
- To: zsh-workers <zsh-workers@xxxxxxxxxxxxxx>
- Subject: PATCH: Memorey leak with PS4 usage.
- Date: Wed, 31 May 2000 20:27:14 -0700 (PDT)
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
There seems to be a memory leak issue with the use of promptexpand.
I've included a patch for utils.c.
I think there are additional problems with promptexpand's use in subst.c, which
I'll leave for someone who understands the code better.
-FR
__________________________________________________
Do You Yahoo!?
Send instant messages & get email alerts with Yahoo! Messenger.
http://im.yahoo.com/
Index: Src/utils.c
===================================================================
--- zsh/Src/outils.c Sat May 20 08:56:03 2000
+++ zsh/Src/utils.c Wed May 31 20:12:20 2000
@@ -807,6 +807,7 @@
opts[XTRACE] = t;
fprintf(xtrerr, "%s", s);
+ free(s);
}
}
Messages sorted by:
Reverse Date,
Date,
Thread,
Author