aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlandley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277>2005-12-15 06:51:52 +0000
committerlandley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277>2005-12-15 06:51:52 +0000
commita44195dcc3515b2634c2aebc4df839e7602015c6 (patch)
treee69a53c0c1c166551b7f2693015cb4a5d4c49bfb
parente03920aed1d2d9118d2ff59b9e2186b2f5b5acca (diff)
downloadbusybox-w32-a44195dcc3515b2634c2aebc4df839e7602015c6.tar.gz
busybox-w32-a44195dcc3515b2634c2aebc4df839e7602015c6.tar.bz2
busybox-w32-a44195dcc3515b2634c2aebc4df839e7602015c6.zip
Eliminate unnecessary allocation from md5sum that was leaked without ever being used.
git-svn-id: svn://busybox.net/trunk/busybox@12890 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r--coreutils/md5_sha1_sum.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/coreutils/md5_sha1_sum.c b/coreutils/md5_sha1_sum.c
index 064340f25..287c2f524 100644
--- a/coreutils/md5_sha1_sum.c
+++ b/coreutils/md5_sha1_sum.c
@@ -142,15 +142,6 @@ static int hash_files(int argc, char **argv, const uint8_t hash_algo)
142 } else 142 } else
143#endif 143#endif
144 { 144 {
145 uint8_t hash_length;
146
147 if (hash_algo == HASH_MD5) {
148 hash_length = 16;
149 } else {
150 hash_length = 20;
151 }
152 hash_value = xmalloc(hash_length);
153
154 while (optind < argc) { 145 while (optind < argc) {
155 char *file_ptr = argv[optind++]; 146 char *file_ptr = argv[optind++];
156 147