[IRDA]: Fix memory leak in irttp_init()

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Alexey Dobriyan 2005-09-24 16:54:50 -07:00 committed by David S. Miller
parent 45fc3b11f1
commit 15166fadb0
1 changed files with 1 additions and 0 deletions

View File

@ -100,6 +100,7 @@ int __init irttp_init(void)
if (!irttp->tsaps) { if (!irttp->tsaps) {
IRDA_ERROR("%s: can't allocate IrTTP hashbin!\n", IRDA_ERROR("%s: can't allocate IrTTP hashbin!\n",
__FUNCTION__); __FUNCTION__);
kfree(irttp);
return -ENOMEM; return -ENOMEM;
} }