diff options
author | mmcc <mmcc@cvs.openbsd.org> | 2015-12-19 20:38:36 +0000 |
---|---|---|
committer | mmcc <mmcc@cvs.openbsd.org> | 2015-12-19 20:38:36 +0000 |
commit | b7e29deba7a45967dd1395596fb63aeb2adb6c61 (patch) | |
tree | 524f7ab943817a7d71d6160802f0160335afe1a2 /usr.sbin | |
parent | acbb81fccf3eefc9742f9d745b98b2059cc06057 (diff) |
Remove NULL-check before free().
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/fdformat/fdformat.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.sbin/fdformat/fdformat.c b/usr.sbin/fdformat/fdformat.c index 372e62bd94b..a60043fe5cc 100644 --- a/usr.sbin/fdformat/fdformat.c +++ b/usr.sbin/fdformat/fdformat.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fdformat.c,v 1.20 2015/04/18 18:28:38 deraadt Exp $ */ +/* $OpenBSD: fdformat.c,v 1.21 2015/12/19 20:38:35 mmcc Exp $ */ /* * Copyright (C) 1992-1994 by Joerg Wunsch, Dresden @@ -108,8 +108,7 @@ verify_track(int fd, int track, int tracksize) } if (bufsz < tracksize) { - if (buf) - free (buf); + free(buf); bufsz = tracksize; buf = 0; } |