summaryrefslogtreecommitdiff
path: root/usr.sbin/rdate/ntpleaps.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/rdate/ntpleaps.c')
-rw-r--r--usr.sbin/rdate/ntpleaps.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.sbin/rdate/ntpleaps.c b/usr.sbin/rdate/ntpleaps.c
index 8c9323e5d23..f38d3cf2456 100644
--- a/usr.sbin/rdate/ntpleaps.c
+++ b/usr.sbin/rdate/ntpleaps.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ntpleaps.c,v 1.13 2014/10/08 04:48:22 deraadt Exp $ */
+/* $OpenBSD: ntpleaps.c,v 1.14 2015/12/12 20:04:23 mmcc Exp $ */
/*
* Copyright (c) 2002 Thorsten Glaser. All rights reserved.
@@ -188,8 +188,7 @@ ntpleaps_read(void)
/* Clean up and activate the table */
close(fd);
- if (leapsecs != NULL)
- free(leapsecs);
+ free(leapsecs);
leapsecs = l;
leapsecs_num = r;
return (0);