commit | 15166fadb0308496bbff50c08ed5fe6a18d5cc4f | [log] [tgz] |
---|---|---|
author | Alexey Dobriyan <adobriyan@gmail.com> | Sat Sep 24 16:54:50 2005 -0700 |
committer | David S. Miller <davem@davemloft.net> | Sat Sep 24 16:54:50 2005 -0700 |
tree | 0a3fd6cd2224155fef9a7140d0d05f882771a3d8 | |
parent | 45fc3b11f1d419ed6c636e5ca84472d9805f520e [diff] [blame] |
[IRDA]: Fix memory leak in irttp_init() Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
diff --git a/net/irda/irttp.c b/net/irda/irttp.c index 6602d90..1df6487 100644 --- a/net/irda/irttp.c +++ b/net/irda/irttp.c
@@ -100,6 +100,7 @@ if (!irttp->tsaps) { IRDA_ERROR("%s: can't allocate IrTTP hashbin!\n", __FUNCTION__); + kfree(irttp); return -ENOMEM; }