From 65b265f3c0877823b72ffff6ba1083972c49a3a8 Mon Sep 17 00:00:00 2001 From: Oliver Kiddle Date: Thu, 12 Apr 2018 23:15:04 +0200 Subject: 42624 (plus test): avoid freeing memory that's still needed This was occurring in a multiple function definition where a function name is duplicated. --- Test/C04funcdef.ztst | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'Test') 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 + } <<b: redirection +>a: redirection + functions -M m1 m1() { (( $# )) } print $(( m1() )) -- cgit 1.4.1