From 7eb7ad4b7e754e10048166224eeaa7c044befc0e Mon Sep 17 00:00:00 2001 From: pooka Date: Wed, 23 Jan 2002 11:27:59 +0000 Subject: [PATCH] free memory allocated for suspend save area in detach --- sys/dev/pci/esa.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/dev/pci/esa.c b/sys/dev/pci/esa.c index ee31f343b2a0..140812241511 100644 --- a/sys/dev/pci/esa.c +++ b/sys/dev/pci/esa.c @@ -1,4 +1,4 @@ -/* $NetBSD: esa.c,v 1.7 2002/01/14 19:24:39 pooka Exp $ */ +/* $NetBSD: esa.c,v 1.8 2002/01/23 11:27:59 pooka Exp $ */ /* * Copyright (c) 2001, 2002 Jared D. McNeill @@ -1019,6 +1019,8 @@ esa_detach(struct device *self, int flags) if (sc->sc_ios) bus_space_unmap(sc->sc_iot, sc->sc_ioh, sc->sc_ios); + free(sc->savemem, M_DEVBUF); + return (0); }