mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Call wi_free() in all the relevant error cases.
This commit is contained in:
parent
459caa871c
commit
729a248d63
1 changed files with 2 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue