about summary refs log tree commit diff
path: root/Src/Modules/zutil.c
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2002-04-24 07:59:17 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2002-04-24 07:59:17 +0000
commited98c0bed8e554632b79b278d8251ac52c1dcfbc (patch)
tree344e48b551926a7eb74d60c400a5d41e65f26e7e /Src/Modules/zutil.c
parent45af2f90f91fa1b3f3b326baa34272a4f045fb91 (diff)
downloadzsh-ed98c0bed8e554632b79b278d8251ac52c1dcfbc.tar.gz
zsh-ed98c0bed8e554632b79b278d8251ac52c1dcfbc.tar.xz
zsh-ed98c0bed8e554632b79b278d8251ac52c1dcfbc.zip
fix two memory leaks (found by Felix): pre-compiled patterns when re-defining styles and compredirs-copies in comp_wrapper() (17029)
Diffstat (limited to 'Src/Modules/zutil.c')
-rw-r--r--Src/Modules/zutil.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Src/Modules/zutil.c b/Src/Modules/zutil.c
index 85ab4b394..3443f870d 100644
--- a/Src/Modules/zutil.c
+++ b/Src/Modules/zutil.c
@@ -132,6 +132,7 @@ setstypat(Style s, char *pat, Patprog prog, char **vals, int eval)
 		freearray(p->vals);
 	    if (p->eval)
 		freeeprog(p->eval);
+            freepatprog(p->prog);
 	    p->vals = zarrdup(vals);
 	    p->eval = eprog;