summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2015-09-06 16:24:20 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2015-09-06 16:24:20 +0000
commit8db421bc44e1779f5a0b3758442efa51c78acde1 (patch)
tree4407a1c55afc431f8e624faf05a7ec944858ad02
parente17ec89aac69a4ddcea0384ff7fe8d24ad7d806a (diff)
pretty simple size for free()
-rw-r--r--sys/arch/macppc/macppc/mem.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/macppc/macppc/mem.c b/sys/arch/macppc/macppc/mem.c
index bafdd92b96a..472f604dc91 100644
--- a/sys/arch/macppc/macppc/mem.c
+++ b/sys/arch/macppc/macppc/mem.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mem.c,v 1.21 2015/05/28 20:53:05 jcs Exp $ */
+/* $OpenBSD: mem.c,v 1.22 2015/09/06 16:24:19 deraadt Exp $ */
/* $NetBSD: mem.c,v 1.1 1996/09/30 16:34:50 ws Exp $ */
/*
@@ -152,7 +152,7 @@ mem_attach(struct device *parent, struct device *self, void *aux)
}
/* No need to keep the "dimm-info" contents around. */
- free(sc->sc_buf, M_DEVBUF, 0);
+ free(sc->sc_buf, M_DEVBUF, sc->sc_len);
sc->sc_len = -1;
}
}