Fix memory leaks
authorGlenn L McGrath <bug1@ihug.co.nz>
Sat, 15 Nov 2003 00:24:43 +0000 (00:24 -0000)
committerGlenn L McGrath <bug1@ihug.co.nz>
Sat, 15 Nov 2003 00:24:43 +0000 (00:24 -0000)
archival/libunarchive/get_header_tar.c

index cf5ac6b62f444438747b2f6a38c02597dc04b129..97536c9887da8795ee40525a352efc117336636a 100644 (file)
@@ -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);
 }