diff options
author | miko <miko@cvs.openbsd.org> | 2018-10-27 01:01:35 +0000 |
---|---|---|
committer | miko <miko@cvs.openbsd.org> | 2018-10-27 01:01:35 +0000 |
commit | 53d17232e0cfb60ce190c4c0b50b6a456535b0d6 (patch) | |
tree | 2a95af04a03ba0a06f327340a81f27f3cec0938a | |
parent | 41c1d52a9f988fb99399cd18b87d3310f5954fde (diff) |
size for free(); ok ratchov@
-rw-r--r-- | sys/dev/pci/auich.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/auich.c b/sys/dev/pci/auich.c index a38fe99e45f..626e1f78ba1 100644 --- a/sys/dev/pci/auich.c +++ b/sys/dev/pci/auich.c @@ -1,4 +1,4 @@ -/* $OpenBSD: auich.c,v 1.109 2018/09/14 08:45:46 miko Exp $ */ +/* $OpenBSD: auich.c,v 1.110 2018/10/27 01:01:34 miko Exp $ */ /* * Copyright (c) 2000,2001 Michael Shalayeff @@ -882,7 +882,7 @@ auich_allocm(void *v, int direction, size_t size, int pool, int flags) error = auich_allocmem(sc, size, PAGE_SIZE, p); if (error) { - free(p, pool, 0); + free(p, pool, sizeof(*p)); return NULL; } @@ -913,7 +913,7 @@ auich_freem(void *v, void *ptr, int pool) return; auich_freemem(sc, p); - free(p, pool, 0); + free(p, pool, sizeof(*p)); } size_t |