svn commit: trunk/busybox/coreutils

landley at busybox.net landley at busybox.net
Thu Dec 15 06:52:10 UTC 2005


Author: landley
Date: 2005-12-14 22:51:52 -0800 (Wed, 14 Dec 2005)
New Revision: 12890

Log:
Eliminate unnecessary allocation from md5sum that was leaked without ever being used.


Modified:
   trunk/busybox/coreutils/md5_sha1_sum.c


Changeset:
Modified: trunk/busybox/coreutils/md5_sha1_sum.c
===================================================================
--- trunk/busybox/coreutils/md5_sha1_sum.c	2005-12-15 05:42:55 UTC (rev 12889)
+++ trunk/busybox/coreutils/md5_sha1_sum.c	2005-12-15 06:51:52 UTC (rev 12890)
@@ -142,15 +142,6 @@
 	} else
 #endif
 	{
-		uint8_t hash_length;
-
-		if (hash_algo == HASH_MD5) {
-			hash_length = 16;
-		} else {
-			hash_length = 20;
-		}
-		hash_value = xmalloc(hash_length);
-
 		while (optind < argc) {
 			char *file_ptr = argv[optind++];
 




More information about the busybox-cvs mailing list