From: Glenn L McGrath Date: Sat, 15 Nov 2003 00:24:43 +0000 (-0000) Subject: Fix memory leaks X-Git-Tag: 1_00_pre4~56 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=54ac057c0016ac23b7367342f4834e33cf7d47d7;p=oweals%2Fbusybox.git Fix memory leaks --- 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); }