summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/tar/read_header.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/tar/read_header.c b/lib/tar/read_header.c
index 95d7d0c..de6f0cd 100644
--- a/lib/tar/read_header.c
+++ b/lib/tar/read_header.c
@@ -203,11 +203,7 @@ fail_format:
fputs("malformed GNU pax sparse file record\n", stderr);
goto fail;
fail:
- while (list != NULL) {
- ent = list;
- list = list->next;
- free(ent);
- }
+ free_sparse_list(list);
free(ent);
return NULL;
}