From: Alexey Dobriyan Date: Sat, 24 Sep 2005 23:54:50 +0000 (-0700) Subject: [IRDA]: Fix memory leak in irttp_init() X-Git-Tag: v2.6.14-rc3~113^2~2 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=15166fadb0308496bbff50c08ed5fe6a18d5cc4f;p=linux-2.6 [IRDA]: Fix memory leak in irttp_init() Signed-off-by: Alexey Dobriyan Signed-off-by: David S. Miller --- diff --git a/net/irda/irttp.c b/net/irda/irttp.c index 6602d901f8..1df6487609 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; }