about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2000-06-26 08:20:33 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2000-06-26 08:20:33 +0000
commit470515922c73eaf630d0b2eb561980e1a87150cb (patch)
tree9d22fb9fabaf37c6cb3ff91ef1cbc11d0d3c5ee6
parent4d656bfb0ee1ef079bd674187fecca871ceafaab (diff)
downloadzsh-470515922c73eaf630d0b2eb561980e1a87150cb.tar.gz
zsh-470515922c73eaf630d0b2eb561980e1a87150cb.tar.xz
zsh-470515922c73eaf630d0b2eb561980e1a87150cb.zip
typo in _history; missing free()s in zle_tricky.c (12067)
-rw-r--r--ChangeLog3
-rw-r--r--Completion/Core/_history2
-rw-r--r--Src/Zle/zle_tricky.c2
3 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 09debbf7e..bead24fe3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2000-06-26  Sven Wischnowsky  <wischnow@zsh.org>
 
+	* 12067: Completion/Core/_history, Src/Zle/zle_tricky.c: typo in
+ 	_history; missing free()s in zle_tricky.c
+	
 	* 12066: Src/Zle/computil.c: missing allocation of list for option
  	arguments
 	
diff --git a/Completion/Core/_history b/Completion/Core/_history
index dafd61407..63878ac1c 100644
--- a/Completion/Core/_history
+++ b/Completion/Core/_history
@@ -57,4 +57,4 @@ while [[ $compstate[nmatches] -eq 0 && beg -lt max ]]; do
   (( beg+=slice ))
 done
 
-(( $compstate[namtches] ))
+(( $compstate[nmatches] ))
diff --git a/Src/Zle/zle_tricky.c b/Src/Zle/zle_tricky.c
index bc76ad4cd..a4095b1a2 100644
--- a/Src/Zle/zle_tricky.c
+++ b/Src/Zle/zle_tricky.c
@@ -604,6 +604,8 @@ docomplete(int lst)
 	    ll = strlen((char *) line);
 	    cs = ocs;
 	    unmetafy_line();
+	    zsfree(s);
+	    zsfree(qword);
 	    return 1;
 	}
 	ocs = cs;