mirror of
https://github.com/sheumann/hush.git
synced 2024-12-22 14:30:31 +00:00
Plug another memory leak in hush. This one showed up when backticked
commands were run. This one was sure a bugger to find. -Erik
This commit is contained in:
parent
bf7df04ec1
commit
a15dc15f12
1
hush.c
1
hush.c
@ -2166,6 +2166,7 @@ static int process_command_subs(o_string *dest, struct p_context *ctx, struct in
|
||||
* to the KISS philosophy of this program. */
|
||||
mark_closed(fileno(p));
|
||||
retcode=pclose(p);
|
||||
free_pipe_list(inner.list_head,0);
|
||||
debug_printf("pclosed, retcode=%d\n",retcode);
|
||||
/* XXX this process fails to trim a single trailing newline */
|
||||
return retcode;
|
||||
|
@ -2166,6 +2166,7 @@ static int process_command_subs(o_string *dest, struct p_context *ctx, struct in
|
||||
* to the KISS philosophy of this program. */
|
||||
mark_closed(fileno(p));
|
||||
retcode=pclose(p);
|
||||
free_pipe_list(inner.list_head,0);
|
||||
debug_printf("pclosed, retcode=%d\n",retcode);
|
||||
/* XXX this process fails to trim a single trailing newline */
|
||||
return retcode;
|
||||
|
Loading…
Reference in New Issue
Block a user