free memory allocated for suspend save area in detach

This commit is contained in:
pooka 2002-01-23 11:27:59 +00:00
parent 14b3179d7c
commit 7eb7ad4b7e

View File

@ -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 <jmcneill@invisible.yi.org>
@ -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);
}