Eliminate unnecessary allocation from md5sum that was leaked without ever being used.
This commit is contained in:
@@ -142,15 +142,6 @@ static int hash_files(int argc, char **argv, const uint8_t hash_algo)
|
|||||||
} else
|
} else
|
||||||
#endif
|
#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) {
|
while (optind < argc) {
|
||||||
char *file_ptr = argv[optind++];
|
char *file_ptr = argv[optind++];
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user