[IRDA]: Fix memory leak in irttp_init()

Signed-off-by: Alexey Dobriyan <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
Alexey Dobriyan authored and David S. Miller committed 2005-09-24 16:54:50 -07:00
1 parent 45fc3b11f1
commit 15166fadb0
1 file changed
+1
+1
View File
@@ -100,6 +100,7 @@ int __init irttp_init(void)
if (!irttp->tsaps) {
IRDA_ERROR("%s: can't allocate IrTTP hashbin!\n",
__FUNCTION__);
kfree(irttp);
return -ENOMEM;
}