diff options
author | mmcc <mmcc@cvs.openbsd.org> | 2015-12-09 19:39:11 +0000 |
---|---|---|
committer | mmcc <mmcc@cvs.openbsd.org> | 2015-12-09 19:39:11 +0000 |
commit | c1d2897d759ec008f27fea1f8e5c398a6562b3e4 (patch) | |
tree | f82046264d9c000b0507d6f6b94cb65466ff0aa7 /usr.bin/paste | |
parent | 4edce31b89a56272f3f73f0b7adb85e497cadaea (diff) |
Remove NULL-checks before free(). ok tb@
Diffstat (limited to 'usr.bin/paste')
-rw-r--r-- | usr.bin/paste/paste.c | 5 |
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); } } |