diff options
author | Jolan Luff <jolan@cvs.openbsd.org> | 2006-04-13 15:27:50 +0000 |
---|---|---|
committer | Jolan Luff <jolan@cvs.openbsd.org> | 2006-04-13 15:27:50 +0000 |
commit | c218ce41024121cad83a50448391c046c1510a99 (patch) | |
tree | 82010a0788d0eb240dbf3add7fb298e508ecf758 /sys/dev/usb | |
parent | beb2460a9f01cc26d177115bfac2ea2cbf8ea747 (diff) |
free mem if attach fails; netbsd coverity cid 2329
ok dlg@
Diffstat (limited to 'sys/dev/usb')
-rw-r--r-- | sys/dev/usb/if_axe.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/usb/if_axe.c b/sys/dev/usb/if_axe.c index ca15d7b6f8d..732aedf00b7 100644 --- a/sys/dev/usb/if_axe.c +++ b/sys/dev/usb/if_axe.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_axe.c,v 1.47 2006/03/25 22:41:46 djm Exp $ */ +/* $OpenBSD: if_axe.c,v 1.48 2006/04/13 15:27:49 jolan Exp $ */ /* * Copyright (c) 1997, 1998, 1999, 2000-2003 @@ -567,6 +567,7 @@ USB_ATTACH(axe) if (err) { printf("axe%d: getting interface handle failed\n", sc->axe_unit); + usbd_devinfo_free(devinfop); USB_ATTACH_ERROR_RETURN; } @@ -579,7 +580,8 @@ USB_ATTACH(axe) err = usbd_device2interface_handle(dev, AXE_IFACE_IDX, &sc->axe_iface); if (err) { printf("axe%d: getting interface handle failed\n", - sc->axe_unit); + sc->axe_unit); + usbd_devinfo_free(devinfop); USB_ATTACH_ERROR_RETURN; } |