aboutsummaryrefslogtreecommitdiff
path: root/archival/libunarchive
diff options
context:
space:
mode:
authorGlenn L McGrath <bug1@ihug.co.nz>2003-11-15 00:24:43 +0000
committerGlenn L McGrath <bug1@ihug.co.nz>2003-11-15 00:24:43 +0000
commit54ac057c0016ac23b7367342f4834e33cf7d47d7 (patch)
tree6de14e02bd8b8846fc62651233c116cfc8c95ab5 /archival/libunarchive
parent5c2c8eca4a175de7c73d3fbeb4c68817c6fd96d1 (diff)
downloadbusybox-54ac057c0016ac23b7367342f4834e33cf7d47d7.tar.gz
Fix memory leaks
Diffstat (limited to 'archival/libunarchive')
-rw-r--r--archival/libunarchive/get_header_tar.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/archival/libunarchive/get_header_tar.c b/archival/libunarchive/get_header_tar.c
index cf5ac6b62..97536c988 100644
--- a/archival/libunarchive/get_header_tar.c
+++ b/archival/libunarchive/get_header_tar.c
@@ -185,5 +185,8 @@ extern char get_header_tar(archive_handle_t *archive_handle)
}
archive_handle->offset += file_header->size;
+ free(file_header->name);
+ free(file_header->link_name);
+
return(EXIT_SUCCESS);
}