diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2015-09-02 21:22:45 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2015-09-02 21:22:45 +0000 |
commit | e7899d0dc1ba2efb2e14990fe55c2ffdf4860033 (patch) | |
tree | 5867094a440e6ac20b1511198a2958711731f4b6 /sys | |
parent | 2f9f34e160696a8a69788c0b7db37c3216281b51 (diff) |
Use the pointer we got back from alloc() when calling free() instead of
something that points smack in the middle of the buffer.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/amd64/stand/efiboot/efiboot.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/amd64/stand/efiboot/efiboot.c b/sys/arch/amd64/stand/efiboot/efiboot.c index 43cea0668bb..fb4a4ca0518 100644 --- a/sys/arch/amd64/stand/efiboot/efiboot.c +++ b/sys/arch/amd64/stand/efiboot/efiboot.c @@ -1,4 +1,4 @@ -/* $OpenBSD: efiboot.c,v 1.1 2015/09/02 01:52:25 yasuoka Exp $ */ +/* $OpenBSD: efiboot.c,v 1.2 2015/09/02 21:22:44 kettenis Exp $ */ /* * Copyright (c) 2015 YASUOKA Masahiko <yasuoka@yasuoka.net> @@ -300,7 +300,7 @@ efi_memprobe_internal(void) bm->addr / 1024 == extmem + 1024) extmem += bm->size / 1024; } - free(mm, siz); + free(mm0, siz); } /*********************************************************************** |