summaryrefslogtreecommitdiffstats
path: root/bin/cp
diff options
context:
space:
mode:
Diffstat (limited to 'bin/cp')
-rw-r--r--bin/cp/cp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/cp/cp.c b/bin/cp/cp.c
index 0d0040a..b0a3db7 100644
--- a/bin/cp/cp.c
+++ b/bin/cp/cp.c
@@ -476,6 +476,7 @@ copy(char *argv[], enum op type, int fts_options)
}
if (errno)
err(1, "fts_read");
+ fts_close(ftsp);
return (rval);
}
OpenPOWER on IntegriCloud