summaryrefslogtreecommitdiff
path: root/lib/libkvm/kvm_mips64.c
diff options
context:
space:
mode:
authorVadim Zhukov <zhuk@cvs.openbsd.org>2018-05-03 16:42:08 +0000
committerVadim Zhukov <zhuk@cvs.openbsd.org>2018-05-03 16:42:08 +0000
commit5e3c6ea9fc1fb4598e6ab656e9431ad2b557b8ea (patch)
tree30118fb5bcbaf45517554b36cf27d40526c7180f /lib/libkvm/kvm_mips64.c
parentb176d759c46a815c414fb0b4820a9d2e4b52686d (diff)
Cleanup usage of free() in libkvm.
okay deraadt@, otto@, tb@
Diffstat (limited to 'lib/libkvm/kvm_mips64.c')
-rw-r--r--lib/libkvm/kvm_mips64.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libkvm/kvm_mips64.c b/lib/libkvm/kvm_mips64.c
index 77434358ca5..6ab067725de 100644
--- a/lib/libkvm/kvm_mips64.c
+++ b/lib/libkvm/kvm_mips64.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kvm_mips64.c,v 1.15 2015/02/09 22:23:47 miod Exp $ */
+/* $OpenBSD: kvm_mips64.c,v 1.16 2018/05/03 16:42:07 zhuk Exp $ */
/* $NetBSD: kvm_mips.c,v 1.3 1996/03/18 22:33:44 thorpej Exp $ */
/*-
@@ -71,8 +71,8 @@ struct vmstate {
void
_kvm_freevtop(kvm_t *kd)
{
- if (kd->vmst != 0)
- free(kd->vmst);
+ free(kd->vmst);
+ kd->vmst = NULL;
}
int