diff options
author | Frederic Cambus <fcambus@cvs.openbsd.org> | 2018-01-17 16:54:20 +0000 |
---|---|---|
committer | Frederic Cambus <fcambus@cvs.openbsd.org> | 2018-01-17 16:54:20 +0000 |
commit | 544b1530f83b6fc75b39df563675077a9d95ce07 (patch) | |
tree | 2b5d1b4585bdde47c3cc82d690b8a0601c679038 /sys/dev/wscons/wsdisplay.c | |
parent | 64822df4312315887a4cd5080f68dff9a4a837b1 (diff) |
Add sizes for free() in wscons(4).
OK deraadt@, visa@, mpi@
Diffstat (limited to 'sys/dev/wscons/wsdisplay.c')
-rw-r--r-- | sys/dev/wscons/wsdisplay.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/wscons/wsdisplay.c b/sys/dev/wscons/wsdisplay.c index 5719481413d..35cfff6454e 100644 --- a/sys/dev/wscons/wsdisplay.c +++ b/sys/dev/wscons/wsdisplay.c @@ -1,4 +1,4 @@ -/* $OpenBSD: wsdisplay.c,v 1.129 2017/07/19 20:12:54 kettenis Exp $ */ +/* $OpenBSD: wsdisplay.c,v 1.130 2018/01/17 16:54:19 fcambus Exp $ */ /* $NetBSD: wsdisplay.c,v 1.82 2005/02/27 00:27:52 perry Exp $ */ /* @@ -3326,7 +3326,7 @@ allocate_copybuffer(struct wsdisplay_softc *sc) } if (size != sc->sc_copybuffer_size && sc->sc_copybuffer_size != 0) { bzero(sc->sc_copybuffer, sc->sc_copybuffer_size); - free(sc->sc_copybuffer, M_DEVBUF, 0); + free(sc->sc_copybuffer, M_DEVBUF, sc->sc_copybuffer_size); } if ((sc->sc_copybuffer = (char *)malloc(size, M_DEVBUF, M_NOWAIT)) == NULL) { |