diff options
-rw-r--r-- | hush.c | 1 | ||||
-rw-r--r-- | shell/hush.c | 1 |
2 files changed, 2 insertions, 0 deletions
@@ -2166,6 +2166,7 @@ static int process_command_subs(o_string *dest, struct p_context *ctx, struct in | |||
2166 | * to the KISS philosophy of this program. */ | 2166 | * to the KISS philosophy of this program. */ |
2167 | mark_closed(fileno(p)); | 2167 | mark_closed(fileno(p)); |
2168 | retcode=pclose(p); | 2168 | retcode=pclose(p); |
2169 | free_pipe_list(inner.list_head,0); | ||
2169 | debug_printf("pclosed, retcode=%d\n",retcode); | 2170 | debug_printf("pclosed, retcode=%d\n",retcode); |
2170 | /* XXX this process fails to trim a single trailing newline */ | 2171 | /* XXX this process fails to trim a single trailing newline */ |
2171 | return retcode; | 2172 | return retcode; |
diff --git a/shell/hush.c b/shell/hush.c index 57b85d1bc..bb1397179 100644 --- a/shell/hush.c +++ b/shell/hush.c | |||
@@ -2166,6 +2166,7 @@ static int process_command_subs(o_string *dest, struct p_context *ctx, struct in | |||
2166 | * to the KISS philosophy of this program. */ | 2166 | * to the KISS philosophy of this program. */ |
2167 | mark_closed(fileno(p)); | 2167 | mark_closed(fileno(p)); |
2168 | retcode=pclose(p); | 2168 | retcode=pclose(p); |
2169 | free_pipe_list(inner.list_head,0); | ||
2169 | debug_printf("pclosed, retcode=%d\n",retcode); | 2170 | debug_printf("pclosed, retcode=%d\n",retcode); |
2170 | /* XXX this process fails to trim a single trailing newline */ | 2171 | /* XXX this process fails to trim a single trailing newline */ |
2171 | return retcode; | 2172 | return retcode; |