diff options
author | Oliver Kiddle <okiddle@yahoo.co.uk> | 2018-04-12 23:15:04 +0200 |
---|---|---|
committer | Oliver Kiddle <okiddle@yahoo.co.uk> | 2018-04-12 23:15:29 +0200 |
commit | 65b265f3c0877823b72ffff6ba1083972c49a3a8 (patch) | |
tree | 42f54ce498e887dd73d697ee8fe43674bd728709 /Test | |
parent | 2c4ec9dab0233afa146f0ad99041194c208e23b7 (diff) | |
download | zsh-65b265f3c0877823b72ffff6ba1083972c49a3a8.tar.gz zsh-65b265f3c0877823b72ffff6ba1083972c49a3a8.tar.xz zsh-65b265f3c0877823b72ffff6ba1083972c49a3a8.zip |
42624 (plus test): avoid freeing memory that's still needed
This was occurring in a multiple function definition where a function name is duplicated.
Diffstat (limited to 'Test')
-rw-r--r-- | Test/C04funcdef.ztst | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Test/C04funcdef.ztst b/Test/C04funcdef.ztst index 5786018e0..3aaf7fb4a 100644 --- a/Test/C04funcdef.ztst +++ b/Test/C04funcdef.ztst @@ -43,6 +43,16 @@ 0:Function definition without braces >bar + a a b() { + read word + print $0: $word + } <<<redirection + b + a +0:Multiple function definition with duplicate name and redirection +>b: redirection +>a: redirection + functions -M m1 m1() { (( $# )) } print $(( m1() )) |