diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-10-23 13:49:48 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-10-23 13:56:33 +0200 |
commit | cde9624b78d2faadca8e8a29d8c5bcd167641436 (patch) | |
tree | 90eb3af380cd74008e46a8863a6d2a90afcb7a28 /tar | |
parent | 4a71987b92057c3f18df344bba0d7d77b0f7acee (diff) |
Fix memory leak in tar2sqfs if entries are skipped
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'tar')
-rw-r--r-- | tar/tar2sqfs.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tar/tar2sqfs.c b/tar/tar2sqfs.c index 81eb2e4..627cae9 100644 --- a/tar/tar2sqfs.c +++ b/tar/tar2sqfs.c @@ -383,6 +383,8 @@ static int process_tar_ball(void) goto fail; if (skip_entry(STDIN_FILENO, hdr.sb.st_size)) goto fail; + + clear_header(&hdr); continue; } |