aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@gmail.com>2005-09-24 19:54:50 -0400
committerDavid S. Miller <davem@davemloft.net>2005-09-24 19:54:50 -0400
commit15166fadb0308496bbff50c08ed5fe6a18d5cc4f (patch)
tree0a3fd6cd2224155fef9a7140d0d05f882771a3d8
parent45fc3b11f1d419ed6c636e5ca84472d9805f520e (diff)
[IRDA]: Fix memory leak in irttp_init()
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--net/irda/irttp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/irda/irttp.c b/net/irda/irttp.c
index 6602d901f8b1..1df6487609e1 100644
--- a/net/irda/irttp.c
+++ b/net/irda/irttp.c
@@ -100,6 +100,7 @@ int __init irttp_init(void)
100 if (!irttp->tsaps) { 100 if (!irttp->tsaps) {
101 IRDA_ERROR("%s: can't allocate IrTTP hashbin!\n", 101 IRDA_ERROR("%s: can't allocate IrTTP hashbin!\n",
102 __FUNCTION__); 102 __FUNCTION__);
103 kfree(irttp);
103 return -ENOMEM; 104 return -ENOMEM;
104 } 105 }
105 106