summaryrefslogtreecommitdiff
path: root/src/md5sum.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2005-05-12 07:55:15 +0000
committerJim Meyering <jim@meyering.net>2005-05-12 07:55:15 +0000
commit55646e00b95e1ad2ea193ee3042dca41dd705e3a (patch)
tree95f983dc0821b57d600998789930964c6950f9d0 /src/md5sum.c
parent258fbb886034baf260e1a5ed5c3446cce9fa6fb4 (diff)
downloadcoreutils-55646e00b95e1ad2ea193ee3042dca41dd705e3a.tar.xz
Assume `free (NULL)' works.
Diffstat (limited to 'src/md5sum.c')
-rw-r--r--src/md5sum.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/md5sum.c b/src/md5sum.c
index 400f675fa..8f2a67d29 100644
--- a/src/md5sum.c
+++ b/src/md5sum.c
@@ -498,8 +498,7 @@ digest_check (const char *checkfile_name, int (*digest_stream) (FILE *, void *))
}
while (!feof (checkfile_stream) && !ferror (checkfile_stream));
- if (line)
- free (line);
+ free (line);
if (ferror (checkfile_stream))
{