aboutsummaryrefslogtreecommitdiff
path: root/toys
diff options
context:
space:
mode:
authorChris Sarra <chrissarra@google.com>2020-08-19 14:56:44 -0700
committerRob Landley <rob@landley.net>2020-08-19 18:25:42 -0500
commit5ceee6bee1ea09f43ebe6c1fc7ae87993a1daaae (patch)
tree63d8583ee500a110a69d95bf81009ef172c5dd57 /toys
parentdf71fc33af720fc1137be008019377eb081daed8 (diff)
downloadtoybox-5ceee6bee1ea09f43ebe6c1fc7ae87993a1daaae.tar.gz
Patch out memory leak in tar.c
Diffstat (limited to 'toys')
-rw-r--r--toys/posix/tar.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/toys/posix/tar.c b/toys/posix/tar.c
index 4b8dd901..bd738af4 100644
--- a/toys/posix/tar.c
+++ b/toys/posix/tar.c
@@ -263,7 +263,6 @@ static int add_to_tar(struct dirtree *node)
// !i because hardlink to a symlink is a thing.
if (!i && S_ISLNK(st->st_mode)) {
i = 2;
- lnk = xreadlink(name);
}
// Handle file types