aboutsummaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-05-23 23:46:09 +0000
committerandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-05-23 23:46:09 +0000
commit650274b815b837bc23c3433305f5bf000e1934c3 (patch)
treed757df8dc707c1171e846c900c701081a30d780e /shell
parent14fb26a7a760d301dce7fdf97d59af4925a43e15 (diff)
downloadbusybox-w32-650274b815b837bc23c3433305f5bf000e1934c3.tar.gz
busybox-w32-650274b815b837bc23c3433305f5bf000e1934c3.tar.bz2
busybox-w32-650274b815b837bc23c3433305f5bf000e1934c3.zip
Plug another memory leak in hush. This one showed up when backticked
commands were run. This one was sure a bugger to find. -Erik git-svn-id: svn://busybox.net/trunk/busybox@2717 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'shell')
-rw-r--r--shell/hush.c1
1 files changed, 1 insertions, 0 deletions
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;