1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-02 22:11:54 +02:00

fix for unbalanced calls to {push,pop}heap in docomplete()/get_comp_string() (12717)

This commit is contained in:
Sven Wischnowsky 2000-08-29 08:20:59 +00:00
parent 84fd4cb6e6
commit f4f38507e5
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2000-08-29 Sven Wischnowsky <wischnow@zsh.org>
* 12717: Src/Zle/zle_tricky.c: fix for unbalanced calls to
{push,pop}heap in docomplete()/get_comp_string()
2000-08-28 Bart Schaefer <schaefer@zsh.org>
* 12716: Doc/Zsh/builtins.yo, Doc/Zsh/compctl.yo,

View file

@ -581,7 +581,8 @@ docomplete(int lst)
qisuf = ztrdup("");
zsfree(autoq);
autoq = NULL;
/* Get the word to complete. */
/* Get the word to complete.
* NOTE: get_comp_string() calls pushheap(), but not popheap(). */
noerrs = 1;
s = get_comp_string();
DPUTS(wb < 0 || cs < wb || cs > we,
@ -603,6 +604,7 @@ docomplete(int lst)
strcpy((char *) line, ol);
ll = strlen((char *) line);
cs = ocs;
popheap();
unmetafy_line();
zsfree(s);
zsfree(qword);