diff options
author | 2020-10-01 10:05:09 +0000 | |
---|---|---|
committer | 2020-10-01 10:05:09 +0000 | |
commit | db4540260953c15dd54e234bcef1770f19903366 (patch) | |
tree | 03f029c518a45ebb3fbf5d9f2a17fb6c92811bcb | |
parent | avoid uninitialised var use in drm_syncobj.c (diff) | |
download | wireguard-openbsd-db4540260953c15dd54e234bcef1770f19903366.tar.xz wireguard-openbsd-db4540260953c15dd54e234bcef1770f19903366.zip |
correct size argument to free(9)
ok kettenis@
-rw-r--r-- | sys/arch/powerpc64/dev/xicp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/powerpc64/dev/xicp.c b/sys/arch/powerpc64/dev/xicp.c index fb45c3a2868..dd7ed80bf9b 100644 --- a/sys/arch/powerpc64/dev/xicp.c +++ b/sys/arch/powerpc64/dev/xicp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: xicp.c,v 1.3 2020/09/26 17:56:54 kettenis Exp $ */ +/* $OpenBSD: xicp.c,v 1.4 2020/10/01 10:05:09 jsg Exp $ */ /* * Copyright (c) 2020 Mark Kettenis <kettenis@openbsd.org> * @@ -203,7 +203,7 @@ xicp_intr_establish(uint32_t girq, int type, int level, struct cpu_info *ci, if (name) evcount_detach(&ih->ih_count); LIST_REMOVE(ih, ih_hash); - free(ih, M_DEVBUF, sizeof(ih)); + free(ih, M_DEVBUF, sizeof(*ih)); return NULL; } |