diff options
author | Clint Adams <clint@users.sourceforge.net> | 2008-11-11 19:36:34 +0000 |
---|---|---|
committer | Clint Adams <clint@users.sourceforge.net> | 2008-11-11 19:36:34 +0000 |
commit | 4b39a04c14c34db7e5f6f81a86f049d2411fdaf1 (patch) | |
tree | bbf82ccef230f0b0c1cd2dceb2121a9dd2b5b73e | |
parent | a1958f3c41d4c135173f282a99b9fbe1d0150fad (diff) | |
download | zsh-4b39a04c14c34db7e5f6f81a86f049d2411fdaf1.tar.gz zsh-4b39a04c14c34db7e5f6f81a86f049d2411fdaf1.tar.xz zsh-4b39a04c14c34db7e5f6f81a86f049d2411fdaf1.zip |
26027: free pprogc before it goes out of scope in makecomplistflags.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | Src/Zle/compctl.c | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog index d592ef5cd..0c1cd02d9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-11-11 Clint Adams <clint@zsh.org> + + * 26027: Src/Zle/compctl.c: free pprogc before it goes out of + scope in makecomplistflags. + 2008-11-11 Peter Stephenson <pws@csr.com> * 26025: Src/Zle/zle_main.c: prefer handling user input to diff --git a/Src/Zle/compctl.c b/Src/Zle/compctl.c index 58c81c2c8..f07f80877 100644 --- a/Src/Zle/compctl.c +++ b/Src/Zle/compctl.c @@ -3773,6 +3773,7 @@ makecomplistflags(Compctl cc, char *s, int incmd, int compadd) } he = up_histent(he); } + freepatprog(pprogc); } if ((t = cc->mask & (CC_ARRAYS | CC_INTVARS | CC_ENVVARS | CC_SCALARS | CC_READONLYS | CC_SPECIALS | CC_PARAMS))) |