about summary refs log tree commit diff
path: root/Src/Zle/zle_main.c
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2002-03-01 10:41:59 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2002-03-01 10:41:59 +0000
commit10490ec499fff7b932f92a0b19c7e5343a24761d (patch)
tree43681ce84c1148d06cecdbd0ada37b88362ca85c /Src/Zle/zle_main.c
parent4b98b648dfb0b641ea9592b66c87365449723194 (diff)
downloadzsh-10490ec499fff7b932f92a0b19c7e5343a24761d.tar.gz
zsh-10490ec499fff7b932f92a0b19c7e5343a24761d.tar.xz
zsh-10490ec499fff7b932f92a0b19c7e5343a24761d.zip
add $redirections array to completion system parameters, containing information about all redirections on the line; make this and compstate[redirect] contain the file descriptor number (16751)
Diffstat (limited to 'Src/Zle/zle_main.c')
-rw-r--r--Src/Zle/zle_main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/Src/Zle/zle_main.c b/Src/Zle/zle_main.c
index 42c7a6bb3..5af18fbac 100644
--- a/Src/Zle/zle_main.c
+++ b/Src/Zle/zle_main.c
@@ -1138,6 +1138,7 @@ setup_(Module m)
     stackhist = stackcs = -1;
     kungetbuf = (char *) zalloc(kungetsz = 32);
     comprecursive = 0;
+    rdstrs = NULL;
 
     /* initialise the keymap system */
     init_keymaps();
@@ -1192,7 +1193,8 @@ finish_(Module m)
     zfree(vichgbuf, vichgbufsz);
     zfree(kungetbuf, kungetsz);
     free_isrch_spots();
-
+    if (rdstrs)
+        freelinklist(rdstrs, freestr);
     zfree(cutbuf.buf, cutbuf.len);
     for(i = KRINGCT; i--; )
 	zfree(kring[i].buf, kring[i].len);