diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2005-09-25 01:54:50 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2005-09-25 01:54:50 +0200 |
commit | 15166fadb0308496bbff50c08ed5fe6a18d5cc4f (patch) | |
tree | 0a3fd6cd2224155fef9a7140d0d05f882771a3d8 /net/irda | |
parent | [NET]: Protect neigh_stat_seq_fops by CONFIG_PROC_FS (diff) | |
download | linux-15166fadb0308496bbff50c08ed5fe6a18d5cc4f.tar.xz linux-15166fadb0308496bbff50c08ed5fe6a18d5cc4f.zip |
[IRDA]: Fix memory leak in irttp_init()
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/irda')
-rw-r--r-- | net/irda/irttp.c | 1 |
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) if (!irttp->tsaps) { IRDA_ERROR("%s: can't allocate IrTTP hashbin!\n", __FUNCTION__); + kfree(irttp); return -ENOMEM; } |