summaryrefslogtreecommitdiff
path: root/usr.bin/paste
diff options
context:
space:
mode:
authormmcc <mmcc@cvs.openbsd.org>2015-12-09 19:39:11 +0000
committermmcc <mmcc@cvs.openbsd.org>2015-12-09 19:39:11 +0000
commitc1d2897d759ec008f27fea1f8e5c398a6562b3e4 (patch)
treef82046264d9c000b0507d6f6b94cb65466ff0aa7 /usr.bin/paste
parent4edce31b89a56272f3f73f0b7adb85e497cadaea (diff)
Remove NULL-checks before free(). ok tb@
Diffstat (limited to 'usr.bin/paste')
-rw-r--r--usr.bin/paste/paste.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.bin/paste/paste.c b/usr.bin/paste/paste.c
index ef4c62d926b..4b00413e5bb 100644
--- a/usr.bin/paste/paste.c
+++ b/usr.bin/paste/paste.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: paste.c,v 1.21 2015/10/09 01:37:08 deraadt Exp $ */
+/* $OpenBSD: paste.c,v 1.22 2015/12/09 19:39:10 mmcc Exp $ */
/*
* Copyright (c) 1989 The Regents of the University of California.
@@ -212,8 +212,7 @@ sequential(char **argv)
}
if (fp != stdin)
(void)fclose(fp);
- if (lbuf)
- free(lbuf);
+ free(lbuf);
}
}