aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--toys/posix/cpio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/posix/cpio.c b/toys/posix/cpio.c
index 31c777c9..04700ddb 100644
--- a/toys/posix/cpio.c
+++ b/toys/posix/cpio.c
@@ -278,7 +278,7 @@ void cpio_main(void)
free(link);
xclose(fd);
}
- free(name);
+ if (CFG_TOYBOX_FREE) free(name);
memset(toybuf, 0, sizeof(toybuf));
xwrite(afd, toybuf,