Commit 15166fad authored by Alexey Dobriyan's avatar Alexey Dobriyan Committed by David S. Miller
Browse files

[IRDA]: Fix memory leak in irttp_init()


Signed-off-by: default avatarAlexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 45fc3b11
...@@ -100,6 +100,7 @@ int __init irttp_init(void) ...@@ -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;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment