summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-07-21 20:22:36 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-07-21 20:22:36 +0200
commitd613687fadc523fab287b72fa674520d2dd2e687 (patch)
tree0a7357e962b9a63338dab0f8e0c1b05fa390830b
parent2a05bf5bc660bfebb35e42f1f8a0c0ac56e0f9d9 (diff)
fix possible leak in tar2sqfs if writing xattrs fails
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
-rw-r--r--tar/tar2sqfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tar/tar2sqfs.c b/tar/tar2sqfs.c
index 8394b7f..f557f95 100644
--- a/tar/tar2sqfs.c
+++ b/tar/tar2sqfs.c
@@ -403,7 +403,7 @@ int main(int argc, char **argv)
goto out;
if (write_xattr(outfd, &fs, &super, cmp))
- goto out_data;
+ goto out;
if (sqfs_super_write(&super, outfd))
goto out;