Call wi_free() in all the relevant error cases.

This commit is contained in:
Warner Losh 2003-06-11 16:41:07 +00:00
parent 459caa871c
commit 729a248d63

View file

@ -235,9 +235,8 @@ wi_pci_attach(device_t dev)
error = wi_attach(dev);
if (error != 0)
return (error);
return (0);
wi_free(dev);
return (error);
}
static int