Skip to contentSkip to conversation

drivers/bluetooth/bpa10x.c: fix memleak

PATCH Applied [email protected] 2 participants 2 messages Feb 5, 2008

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

PATCH 3/7 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;
 	}
 

_