summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/date.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/date.c b/src/date.c
index 0cabe3aae..dc0efd2a2 100644
--- a/src/date.c
+++ b/src/date.c
@@ -285,8 +285,7 @@ batch_convert (const char *input_filename, const char *format)
if (fclose (in_stream) == EOF)
error (EXIT_FAILURE, errno, "%s", quote (input_filename));
- if (line != NULL)
- free (line);
+ free (line);
return ok;
}