summaryrefslogtreecommitdiff
path: root/usr.bin/newsyslog/newsyslog.c
diff options
context:
space:
mode:
authormmcc <mmcc@cvs.openbsd.org>2015-12-09 19:28:35 +0000
committermmcc <mmcc@cvs.openbsd.org>2015-12-09 19:28:35 +0000
commit1785c97cf6451766a29800a9fd5b0bfe0f1986a7 (patch)
treedc7613302c6454837b76d688aa7a630a7264550b /usr.bin/newsyslog/newsyslog.c
parent717f42c8168fcfddf591cba3ecf226cf61cd032f (diff)
Remove NULL-checks before free(). ok tb@
Diffstat (limited to 'usr.bin/newsyslog/newsyslog.c')
-rw-r--r--usr.bin/newsyslog/newsyslog.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.bin/newsyslog/newsyslog.c b/usr.bin/newsyslog/newsyslog.c
index 84106065247..7c40c99869a 100644
--- a/usr.bin/newsyslog/newsyslog.c
+++ b/usr.bin/newsyslog/newsyslog.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: newsyslog.c,v 1.98 2015/11/19 08:23:48 sthen Exp $ */
+/* $OpenBSD: newsyslog.c,v 1.99 2015/12/09 19:28:34 mmcc Exp $ */
/*
* Copyright (c) 1999, 2002, 2003 Todd C. Miller <Todd.Miller@courtesan.com>
@@ -1069,8 +1069,7 @@ update:
cleanup:
free(flog);
- if (rb != NULL)
- free(rb);
+ free(rb);
return (1);
}