Skip to content

Commit 15166fa

Browse files
Alexey Dobriyandavem330
authored andcommitted
[IRDA]: Fix memory leak in irttp_init()
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 45fc3b1 commit 15166fa

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎net/irda/irttp.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ int __init irttp_init(void)
100100
if (!irttp->tsaps) {
101101
IRDA_ERROR("%s: can't allocate IrTTP hashbin!\n",
102102
__FUNCTION__);
103+
kfree(irttp);
103104
return -ENOMEM;
104105
}
105106

0 commit comments

Comments
 (0)