hush: add more complex case to leak testcase, fix found breakage
authorDenys Vlasenko <vda.linux@googlemail.com>
Sun, 3 May 2009 23:58:10 +0000 (01:58 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sun, 3 May 2009 23:58:10 +0000 (01:58 +0200)
commitacdc49c07302aa4e49ae765db9cdfd725d51bd7d
tree505cb9ea733c24a778f09feb62623cb4b73c86eb
parentcb6ff25afeb2daeebcb435c9766215061d3c75cb
hush: add more complex case to leak testcase, fix found breakage

function                                             old     new   delta
unset_local_var_len                                    -     167    +167
run_list                                            2350    2457    +107
set_vars_and_save_old                                  -      87     +87
free_pipe                                            207     227     +20
builtin_unset                                        220     229      +9
builtin_exit                                          49      47      -2
free_strings_and_unset                                53       -     -53
set_vars_all_and_save_old                             87       -     -87
unset_local_var                                      168       -    -168
------------------------------------------------------------------------------
(add/remove: 2/3 grow/shrink: 3/1 up/down: 390/-310)           Total: 80 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
shell/hush.c
shell/hush_test/hush-z_slow/leak_all1.tests