diff options
author | cperciva <cperciva@FreeBSD.org> | 2007-01-02 15:03:38 +0000 |
---|---|---|
committer | cperciva <cperciva@FreeBSD.org> | 2007-01-02 15:03:38 +0000 |
commit | d6c46f500a7e28bf62006a794ea943bb4b4abde4 (patch) | |
tree | 3049a4a559df6538d5e828f7ed4a3c663353ce36 /usr.bin | |
parent | 1ff610fa5669c6187c0800e92e24c7139a8b416f (diff) | |
download | FreeBSD-src-d6c46f500a7e28bf62006a794ea943bb4b4abde4.zip FreeBSD-src-d6c46f500a7e28bf62006a794ea943bb4b4abde4.tar.gz |
Clean up the struct archive used for reading an archive in the handling
of @archive commands. This bug should be harmless as long as you don't
use an excessive number of @archive commands.
MFC after: 1 week
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/tar/write.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.bin/tar/write.c b/usr.bin/tar/write.c index 22290c9..7a0ae6c 100644 --- a/usr.bin/tar/write.c +++ b/usr.bin/tar/write.c @@ -513,6 +513,7 @@ append_archive(struct bsdtar *bsdtar, struct archive *a, const char *filename) filename, archive_error_string(ina)); bsdtar->return_value = 1; } + archive_read_finish(ina); /* Note: If we got here, we saw no write errors, so return success. */ return (0); |