Destroy "ioext" as well as "memext" when we're done with it.

This commit is contained in:
simonb 2002-11-01 09:16:28 +00:00
parent d1c7d5dcae
commit 6971634c5e
1 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: pchb.c,v 1.12 2002/10/02 16:02:39 thorpej Exp $ */
/* $NetBSD: pchb.c,v 1.13 2002/11/01 09:16:28 simonb Exp $ */
/*-
* Copyright (c) 1996 The NetBSD Foundation, Inc.
@ -150,6 +150,7 @@ pchbattach(struct device *parent, struct device *self, void *aux)
MIN_PCI_PCI_IOADDR + 0xffff, M_DEVBUF, NULL, 0, EX_NOWAIT);
pci_configure_bus(0, ioext, memext, NULL, 0, 32);
extent_destroy(memext);
extent_destroy(ioext);
#endif /* PCI_NETBSD_CONFIGURE */
#ifdef PCI_CONFIGURE_VERBOSE