diff options
Diffstat (limited to 'bin/ksh/tree.c')
-rw-r--r-- | bin/ksh/tree.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/bin/ksh/tree.c b/bin/ksh/tree.c index dba66d8b25b..bb728de106e 100644 --- a/bin/ksh/tree.c +++ b/bin/ksh/tree.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tree.c,v 1.24 2015/09/27 05:25:00 guenther Exp $ */ +/* $OpenBSD: tree.c,v 1.25 2015/10/09 19:36:27 tedu Exp $ */ /* * command tree climbing @@ -657,8 +657,7 @@ tfree(struct op *t, Area *ap) if (t == NULL) return; - if (t->str != NULL) - afree(t->str, ap); + afree(t->str, ap); if (t->vars != NULL) { for (w = t->vars; *w != NULL; w++) @@ -688,12 +687,9 @@ iofree(struct ioword **iow, Area *ap) struct ioword *p; for (iop = iow; (p = *iop++) != NULL; ) { - if (p->name != NULL) - afree(p->name, ap); - if (p->delim != NULL) - afree(p->delim, ap); - if (p->heredoc != NULL) - afree(p->heredoc, ap); + afree(p->name, ap); + afree(p->delim, ap); + afree(p->heredoc, ap); afree(p, ap); } afree(iow, ap); |