From: Alexey Dobriyan Date: Sat, 24 Sep 2005 23:54:50 +0000 (-0700) Subject: [IRDA]: Fix memory leak in irttp_init() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=15166fadb0308496bbff50c08ed5fe6a18d5cc4f;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [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 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; }