about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
Diffstat (limited to 'Src')
-rw-r--r--Src/Modules/zutil.c1
-rw-r--r--Src/Zle/complete.c1
2 files changed, 2 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;
 
diff --git a/Src/Zle/complete.c b/Src/Zle/complete.c
index a787528c2..e1051c30c 100644
--- a/Src/Zle/complete.c
+++ b/Src/Zle/complete.c
@@ -1320,6 +1320,7 @@ comp_wrapper(Eprog prog, FuncWrap w, char *name)
 	    zsfree(oqs);
 	    zsfree(oaq);
 	    freearray(owords);
+	    freearray(oredirs);
 	}
 	zsfree(comprestore);
 	comprestore = orest;