summaryrefslogtreecommitdiff
path: root/sbin/fsck_ffs
diff options
context:
space:
mode:
authormmcc <mmcc@cvs.openbsd.org>2015-12-10 17:27:01 +0000
committermmcc <mmcc@cvs.openbsd.org>2015-12-10 17:27:01 +0000
commit4bf2522637132964c3a4ee8eb87b6eb96c38a3c0 (patch)
tree63cf1b992195e827c9ad374a9b4cc94720b62605 /sbin/fsck_ffs
parent9356f2f86075047e5545cb5c4e6914e0c96d84f4 (diff)
Remove NULL-checks before free(). ok tb@
Diffstat (limited to 'sbin/fsck_ffs')
-rw-r--r--sbin/fsck_ffs/inode.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sbin/fsck_ffs/inode.c b/sbin/fsck_ffs/inode.c
index 187de3522cc..da059ee1e91 100644
--- a/sbin/fsck_ffs/inode.c
+++ b/sbin/fsck_ffs/inode.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: inode.c,v 1.46 2015/01/20 18:22:21 deraadt Exp $ */
+/* $OpenBSD: inode.c,v 1.47 2015/12/10 17:26:59 mmcc Exp $ */
/* $NetBSD: inode.c,v 1.23 1996/10/11 20:15:47 thorpej Exp $ */
/*
@@ -378,8 +378,7 @@ void
freeinodebuf(void)
{
- if (inodebuf != NULL)
- free(inodebuf);
+ free(inodebuf);
inodebuf = NULL;
}