[BusyBox-cvs] busybox/archival/libunarchive get_header_tar.c, 1.25, 1.26

Glenn McGrath bug1 at busybox.net
Sat Nov 15 00:24:47 UTC 2003


Update of /var/cvs/busybox/archival/libunarchive
In directory winder:/tmp/cvs-serv25197/archival/libunarchive

Modified Files:
	get_header_tar.c 
Log Message:
Fix memory leaks


Index: get_header_tar.c
===================================================================
RCS file: /var/cvs/busybox/archival/libunarchive/get_header_tar.c,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -d -r1.25 -r1.26
--- get_header_tar.c	14 Nov 2003 12:57:14 -0000	1.25
+++ get_header_tar.c	15 Nov 2003 00:24:43 -0000	1.26
@@ -185,5 +185,8 @@
 	}
 	archive_handle->offset += file_header->size;
 
+	free(file_header->name);
+	free(file_header->link_name);
+
 	return(EXIT_SUCCESS);
 }




More information about the busybox-cvs mailing list