Skip to contentSkip to conversation

drivers/bluetooth/bpa10x.c: fix memleak

PATCH New [email protected] 1 participant 1 message Nov 21, 2007

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 3/5 drivers/bluetooth/bpa10x.c: fix memleak

From: Adrian Bunk <[email protected]>

This patch fixea a memleak spotted by the Coverity checker.

---

 drivers/bluetooth/bpa10x.c |    1 +
 1 file changed, 1 insertion(+)
drivers/bluetooth/bpa10x.c renamed from drivers/bluetooth/bpa10x.c~drivers-bluetooth-bpa10xc-fix-memleak +1 -0
diff -puN drivers/bluetooth/bpa10x.c~drivers-bluetooth-bpa10xc-fix-memleak drivers/bluetooth/bpa10x.c
@@ -423,6 +423,7 @@ static int bpa10x_send_frame(struct sk_b
 		break;
 
 	default:
+		usb_free_urb(urb);
 		return -EILSEQ;
 	}
 

_