aboutsummaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorColin Percival <cperciva@FreeBSD.org>2008-07-05 02:21:51 +0000
committerColin Percival <cperciva@FreeBSD.org>2008-07-05 02:21:51 +0000
commit9af6e14a8cf6f39d7c6d2b3a54aa001b32f470e7 (patch)
treebe725d65a1ba4e3cab64a41992eb977e256c2906 /usr.bin
parent6481fd43de49413f385e727f1e3eeff0e415c61d (diff)
Notes
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/tar/write.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/tar/write.c b/usr.bin/tar/write.c
index 28925dfe65c1..50c7c73a7aef 100644
--- a/usr.bin/tar/write.c
+++ b/usr.bin/tar/write.c
@@ -950,7 +950,8 @@ abort:
if (fd >= 0)
close(fd);
- archive_entry_free(entry);
+ if (entry != NULL)
+ archive_entry_free(entry);
}