aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/shar/tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/shar/tree.c')
-rw-r--r--contrib/shar/tree.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/contrib/shar/tree.c b/contrib/shar/tree.c
index d5a04abf5f4b..a80d8366bdeb 100644
--- a/contrib/shar/tree.c
+++ b/contrib/shar/tree.c
@@ -530,8 +530,7 @@ tree_close(struct tree *t)
/* Release anything remaining in the stack. */
while (t->stack != NULL)
tree_pop(t);
- if (t->buff)
- free(t->buff);
+ free(t->buff);
/* chdir() back to where we started. */
if (t->initialDirFd >= 0) {
fchdir(t->initialDirFd);